This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
A question about this proposals #284
Closed
Description
I discovered this repository today. After seeing many proposals, I can say that almost all this proposals I implemented yet in one package
https://github.com/voxsoftware/kawix-core
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
Metadata
Metadata
Assignees
Labels
No labels