Hacker GitHub

← All repos

guybedford/es-module-shims

View on GitHub ↗ ★ 1,736 JavaScript

Shims for new ES modules features on top of the basic modules support in browsers

10 mentions on Hacker News by 10 people: 0 stories, 10 comments · first 2019-04-12 · latest 2024-04-10

Mentions per year 10 mentions · busiest year 2023 (5)
20082026
  1. …time. There is a simple polyfill however in the meantime which means you can actually use it today. https://github.com/guybedford/es-module-shims
    comment by mdhb · 2024-04-10 · in Demystifying the Shadow DOM
  2. …get rid of the import path issue, and to support legacy browsers that still might have that error: https://github.com/guybedford/es-module-shims
  3. …Note that you will need an ES module shim for iOS/Safari if you go this path: https://github.com/guybedford/es-module-shims
  4. https://github.com/guybedford/es-module-shims has a polyfill. (But it is fairly large: 53KB raw, 15KB gzipped, 32KB minified, 11KB minified+gzipped. It’s providing a lot of likely-unnecessary functionality. I’d prefer a stripped-down and…
    comment by chrismorgan · 2023-02-17 · in Modern SPAs without bundlers, CDNs, or Node.js
  5. Safari support is enabled with https://github.com/guybedford/es-module-shims
  6. No problem! There's also a polyfill if you need to support Safari: https://github.com/guybedford/es-module-shims
    comment by TimTheTinker · 2023-02-17 · in Writing JavaScript without a build system
  7. …' import sheet from ' https://site.com/sheet.css ' assert { type: 'css' }; </script> 1: https://github.com/guybedford/es-module-shims
  8. …when the service worker hasn't been installed yet. Ended up using es-module-shim's fetch hook ( https://github.com/guybedford/es-module-shims#fetch-hook ) instead, which worked quite well. I kept the demo repo around here, in case it's…
    comment by lewisl9029 · 2022-06-13 · in Fresh – Next-gen web framework
  9. …from the shim I'm using to support import maps, it's explained why the error is "wanted" here: https://github.com/guybedford/es-module-shims#polyfill-mode I could probably silence it, but since I have examples with that module in the…
  10. …a polyfill such as Guy Bedford’s https://github.com/systemjs/systemjs/blob/master/docs/import... or https://github.com/guybedford/es-module-shims — but you’ll have to consider solutions for custom syntax, scss or non-es module…