-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coffeescript registration lost after esm import #11
Comments
I assume that |
Hmm. Is there any way, let alone a good way to feature-detect and branch ESM-supporting code? |
I guess I could put the import-loading function into a |
Starting at node 10, |
BREAKING CHANGE: now if you want to use `.mjs` files, you need to run with `NODE_OPTIONS=--experimental-modules` on Node 10.x+ Fixes: #11
BREAKING CHANGE: now if you want to use `.mjs` files, you need to run with `NODE_OPTIONS=--experimental-modules` on Node 10.x+ Fixes: #11
BREAKING CHANGE: now if you want to use `.mjs` files, you need to run with `NODE_OPTIONS=--experimental-modules` on Node 10.x+. Also, native ES module loading is NOT compatible with coffeescript/register Fixes: #11
If you have an
object-graph
file that ultimately somewhere tries torequire()
a coffeescript file, it doesn't seem to work.I'm guessing it's related to the esm importing magic; if you
console.log(require.extensions)
right before this line:nilo/lib/project.js
Line 192 in bab3bcf
you see coffee, but if you do the same at the top of one of the
object-graph.js
files, thecoffee
registration is gone.I'm not sure the right way to fix this; setting
extensions: true
in thecjs
options toesm()
didn't trivially fix it - do we still need ESM? Can we just tell people to useNODE_OPTIONS=--experimental-modules
if they wantmjs
support?The text was updated successfully, but these errors were encountered: