-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
I'm trying to use this library for a vscode extension I am working on. I am using esbuild to build my extension, and it is able to bundle code from different module types (esm, cjs, umd) by using package entry points.
Now I noticed the code at index.js is written in CJS format but no ESM build is distributed.
Looking at the scripts/build.js esbuild is already used. As far as I can tell, additional build configurations can be added to add an ESM build. By using exports in package.json this would allow modern ESM imports to resolve to the ESM format instead of the legacy CJS format, without any changes to current consumers of the CJS format.
Are you open to either implement another bundle that distributes a ESM build or accepting PR's that do?