You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mandatory file extensions
A file extension must be provided when using the import keyword. Directory indexes (e.g. './startup/index.js') must also be fully specified.
3cp
added a commit
to dumberjs/dumber-module-loader
that referenced
this issue
Dec 6, 2019
Nodejs v12 has brought support of esm format.
There are two added file extensions: mjs and cjs.
While dumber doesn't care which module format the file is (dumber uses AST to find out), we still need to add the file extensions.
.js
, also need to update nodejs module resolution algorithm to cover new file extensions.https://nodejs.org/dist/latest-v12.x/docs/api/esm.html
Need to support the new "exports" field in package.json defined in the above doc.
The text was updated successfully, but these errors were encountered: