Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle plugin in ESM format #900

Open
Belco90 opened this issue Apr 16, 2024 · 0 comments
Open

Bundle plugin in ESM format #900

Belco90 opened this issue Apr 16, 2024 · 0 comments
Assignees
Labels
chore Changes that affect the build system, CI config or other changes that don't modify src/test files

Comments

@Belco90
Copy link
Member

Belco90 commented Apr 16, 2024

The current bundle is in CJS format. Since ESLint flat config default format is ESM, we need to build the plugin for this format by default. Let's keep compatibility with CJS format for now, so we get both (we will have to point to the corresponding dist/ paths for each in the exports field of the package.json.

Some resources on how to publish in both CJS and ESM with TS:

@Belco90 Belco90 self-assigned this Apr 16, 2024
@Belco90 Belco90 added the chore Changes that affect the build system, CI config or other changes that don't modify src/test files label Apr 16, 2024
@Belco90 Belco90 changed the title Support both CJS and ESM Bundle plugin in ESM format Apr 16, 2024
@Belco90 Belco90 added BREAKING CHANGE This change will require a major version bump and removed BREAKING CHANGE This change will require a major version bump labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that affect the build system, CI config or other changes that don't modify src/test files
Projects
Development

No branches or pull requests

1 participant