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
{{ message }}
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
Can review and determine if is a good valuable option for implement it?
use normal extensions .js for both: ESM and CommonJS
no require any special configuration on package.json
commonjs files will works without changes, like expected
esm files still will have access to variables: module,require,exports, ...
transpiled code is cached for ensure speed
imports are async
imports from URLs
imports from npm packages
imports from JSON is supported
typescript support without additional packages
all ES2017 syntax supported
can be added loaders, for add new languages and extensions. I have an example with .coffee
Can generate a single file bundle from an entire package, without a ton of dependencies like other solutions
My points 1, 2, 3 and 4 are clear: Stop the debate if ESM need another extension or if need specify in package.json the type of javascript file, etc. This should be simple, .js can be both CommonJS or ESM without any special change on file, extensions, or in other package files