Hacker GitHub

← All repos

standard-things/esm

View on GitHub ↗ ★ 5,237 JavaScript archived

Tomorrow's ECMAScript modules today!

9 mentions on Hacker News by 8 people: 1 story, 8 comments · first 2017-08-11 · latest 2024-06-20

Mentions per year 9 mentions · busiest year 2020 (3)
20082026
  1. …CJS and ESM to interop, require and import each other. In my experience it worked flawlessly. https://github.com/standard-things/esm It's wild to think about: esm has taken nearly a decade to be feasible for folks to use, without heavy…
  2. It's all just so extra crazy because https://github.com/standard-things/esm has just worked for so so long. The intense module discussions kept happening, about why it wouldn't work or how it would blow up, but standard-things/esm was…
    comment by jauntywundrkind · 2024-03-21 · in Require(esm) in Node.js
  3. …sucked seeing us walk back from great, mired by frivolous over concern for a obscure corner-case. https://github.com/standard-things/esm
    comment by rektide · 2023-06-30 · in CommonJS is hurting JavaScript
  4. …then hope the downstream CJS don't have timing bugs around "very long" synchronous require() loads. https://github.com/standard-things/esm
  5. …throwing when trying to require type:module packages with `require` (which is what `esm` does) https://github.com/standard-things/esm/issues/868
  6. You can use ESM (including dynamic import) in node 6+ (without babel) by using https://github.com/standard-things/esm and cut the `.mjs` and "it can't work like that" crap.
  7. …been due to a bug in Babel instead of just my incorrect understanding of the language feature. [1]: https://github.com/standard-things/esm
    comment by vimslayer · 2018-07-31 · in Why the New V8 Is So Damn Fast
  8. I know styfle is aware, but for others, you can unlock named exports of CJS modules with @std/esm: https://github.com/standard-things/esm https://medium.com/web-on-the-edge/es-modules-in-node-today-...