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
20082026
-
…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…
comment by jauntywundrkind · 2024-06-20 · in NPM and NodeJS should do more to make ES Modules easy to use -
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 -
…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 -
…then hope the downstream CJS don't have timing bugs around "very long" synchronous require() loads. https://github.com/standard-things/esm
comment by WorldMaker · 2020-08-06 · in Node Modules at War: Why CommonJS and ES Modules Can’t Get Along -
…throwing when trying to require type:module packages with `require` (which is what `esm` does) https://github.com/standard-things/esm/issues/868
comment by wonderlg · 2020-08-06 · in Node Modules at War: Why CommonJS and ES Modules Can’t Get Along -
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.
comment by aPoCoMiLogin · 2020-08-06 · in Node Modules at War: Why CommonJS and ES Modules Can’t Get Along -
…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 -
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-...
comment by jdd · 2017-09-14 · in Using ES modules natively in Node.js -
▲ 2
ES module loader for Nodestory by adregan · 2017-08-11 · 0 comments