> --inspect-brk now works properly for esmodules
When ES Modules landed in Node? How do they work? .mjs? :(
When ES Modules landed in Node? How do they work? .mjs? :(
And yes, still requires .mjs unfortunately.
https://nodejs.org/api/esm.html https://medium.com/the-node-js-collection/an-update-on-es6-m...
I guess I should seriously subscribe to a newsletter or something.
Right now you just require a Babel runtime first, then use import for everything else not caring what type of modules they are. The acceptance test for proper module support in Node.js should simply have been that you can remove the Babel wrapper in an existing project that uses imports instead of requires :(