3 ms·
You can use ESM (including dynamic import) in node 6+ (without babel) by using https://github.com/standard-things/esm https://github.com/standard-things/esm and
by aPoCoMiLogin 6y ago
You can use ESM (including dynamic import) in node 6+ (without babel) by using https://github.com/standard-things/esm https://github.com/standard-things/esm and cut the `.mjs` and "it can't work like that" crap.
- jkrems 6y agoYou can definitely continue to use transpilers like esm or babel to continue using CommonJS behind the scenes while writing module syntax. But it's not quite the same as using native modules, as implemented by JavaScript engines.