standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 146 forks source link

I am not sure if this is needed any more #730

Closed frank-dspeed closed 5 years ago

frank-dspeed commented 5 years ago

Can you maybe post some information in the readme if this is any diffrent from using node --experimental_modules

jdalton commented 5 years ago

Hi @frank-dspeed!

The node --experimental-modules can be seen as our baseline. By using .mjs with esm you get that. No named exports of CJS modules, no support for APM packages, no mocking/stubbing libraries, no code coverage, no to so many things. However, if you use .js all of those things will just work zero-config out of the box. The esm loader even works with the --print, --eval, --check flags of Node too.