Skip to content

Provide an ESM build #1619

@kevinramharak

Description

@kevinramharak

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?

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