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
Forget about .mjs, keep .js and code happily ever after via @std/esm configuring it via package.json as such:
"@std/esm": {"esm": "js"}
or simply
"@std/esm": "js"
Once you’ve done that, everything problematic mentioned in this post will disappear. You now rename both index.mjs and module.mjs files into index.js and module.js and launch your program like this:
node -r @std/esm index.js
At this point you have .js extensions that will work with every one-off server side spinner you have, you can finally import test from "./module.js"; specifying the entire file name and that will work out of the box in browsers, JSC, SpiderMonkey, and whatever other environment you want.
I wonder if the Node-compatible parts of CKEditor 5 (e.g. the engine's model or utils) can be loaded in Node.js without any transpilation.
https://codeburst.io/the-javascript-modules-limbo-585eedbb182e
I wonder if the Node-compatible parts of CKEditor 5 (e.g. the engine's model or utils) can be loaded in Node.js without any transpilation.
cc @czerwonkabartosz, did you try this?
The text was updated successfully, but these errors were encountered: