Skip to content
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
@voxsoftware

Description

@voxsoftware

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?

  1. use normal extensions .js for both: ESM and CommonJS
  2. no require any special configuration on package.json
  3. commonjs files will works without changes, like expected
  4. esm files still will have access to variables: module,require,exports, ...
  5. transpiled code is cached for ensure speed
  6. imports are async
  7. imports from URLs
  8. imports from npm packages
  9. imports from JSON is supported
  10. typescript support without additional packages
  11. all ES2017 syntax supported
  12. can be added loaders, for add new languages and extensions. I have an example with .coffee
  13. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions