3 ms·
Seriously. I maintain an open-source Node.js CLI utility and was shocked when import/export syntax is only achievable if you use a transpiler like Babel. Such o
by ecf 5y ago
Seriously. I maintain an open-source Node.js CLI utility and was shocked when import/export syntax is only achievable if you use a transpiler like Babel. Such overkill for something that’s been in the JS spec for nearly a decade.
- ash_gti 5y agoNode does support ESM now by default (and has supported it for a while behind a flag), https://nodejs.org/api/esm.html https://nodejs.org/api/esm.html