Skip to content

Conversation

@anomiex
Copy link
Contributor

@anomiex anomiex commented Nov 14, 2025

The ESM build is not usable in strict tools because the file is named index.module.js and the package.json indicates that .js files are CommonJS rather than ESM.

It seems a pretty simple change to the build configuration to have it be named index.module.mjs instead.

Fixes #490

The ESM build is not usable in strict tools because the file is named
`index.module.js` and the package.json indicates that `.js` files are
CommonJS rather than ESM.

It seems a pretty simple change to the build configuration to have it be
named `index.module.mjs` instead.
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@ValentinH ValentinH added the patch Increment the patch version when merged label Nov 20, 2025
@ValentinH
Copy link
Owner

Thanks!

@ValentinH ValentinH merged commit b134442 into ValentinH:main Nov 20, 2025
3 checks passed
@github-actions
Copy link

🚀 PR was released in v5.5.4 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Nov 20, 2025
@ValentinH
Copy link
Owner

@all-contributors add @anomiex for infrastructure

@allcontributors
Copy link
Contributor

@ValentinH

I've put up a pull request to add @anomiex! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use import statement outside a module

2 participants