[Proposal] use `esm` instead of `babel`
See original GitHub issueTests currently use babel in order to enable standard syntax (i.e. import
) in modules.
I propose using jest -r esm
It may be that jest does not yet support esm, in which case see https://github.com/exercism/ecmascript/issues/450
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[Proposal] use esm instead of babel #451 - GitHub
We don't use babel just for import , it allows users to code in modern JS features irrespective of the node version they...
Read more >In Rollup, create ESM module with no babel transpiling except ...
I can't seem to stop Babel transpiling down to ES5 though - it creates an _objectSpread2() function and replaces every spread operator with...
Read more >Transpile to ES modules with Babel - Krasimir Tsonev
It turned out the problem is that Navigo is not exported properly as ES module (also known as ESM). The key bit is...
Read more >You Should be Using esm - DEV Community
esm lets you seamlessly combine cjs and js modules with little fuss, if you're transpiling just to use import, chances are you shouldn't....
Read more >Helping Babel move to ES Modules - BigBinary Blog
The Babel project recently moved to running builds on Node.js 14, which means that Babel can now use ES Modules (ESM) instead of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t want to sound rude while closing this issue but I hope you understand. Our users will be using different versions of nodejs on their machines while solving exercises and we want to make sure nothing breaks - hence we have to use a transpiler like
babel
. Thanks ✌️That means
esm
is not a drop-in replacement forbabel
right? Babel transpiles user-written modern javascript for the node version installed on user’s machine.