Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Add ESM Support #343

Open
ahmadbilaldev opened this issue Jun 22, 2021 · 1 comment
Open

Add ESM Support #343

ahmadbilaldev opened this issue Jun 22, 2021 · 1 comment

Comments

@ahmadbilaldev
Copy link

Is your feature request related to a problem? Please describe.

Change the module from CommonJS to ECMAScript Module (ESM). Some JS Frameworks support ESM now and importing CommonJS modules may get complicated. Given that Node.js 12 has become a MAINTENANCE LTS, ECMAScript modules are the official standard format to package JavaScript code for reuse. Converting to ESM is recommended because ESM can still import CommonJS packages, but CommonJS packages cannot import ESM packages synchronously.

Describe the solution you'd like

Two possible solutions are:

  1. Completely move to JavaScript ES Modules.
  2. Introduce a build step that transpiles a CommonJS fallback.
@AleksanderSkubala
Copy link

bump

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants