Closed maxnordlund closed 6 years ago
Node uses .mjs to distinguish between commonjs and ES6 modules. This makes it possible to support both require and import/export natively in node.
.mjs
require
import
export
See https://nodejs.org/api/esm.html for more info
Thanks!
No problem :)
Node uses
.mjs
to distinguish between commonjs and ES6 modules. This makes it possible to support bothrequire
andimport
/export
natively in node.See https://nodejs.org/api/esm.html for more info