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

fix: make esm mjs #21

Merged
merged 1 commit into from
Apr 20, 2021
Merged

fix: make esm mjs #21

merged 1 commit into from
Apr 20, 2021

Conversation

achingbrain
Copy link
Collaborator

@achingbrain achingbrain commented Apr 6, 2021

Tools such as create-react-app require special configuration to handle
.cjs as an extension. Setting type: "module" in package.json means
we have to use the .cjs extension for common js which then breaks these
sorts of tools.

This change removes type: "module" and uses the .js extension for cjs
files and .mjs for esm for maximum compatibiliy.

Tools such as `create-react-app` require special configuration to handle
`.cjs` as an extension.  Setting `type: "module"` in `package.json` means
we have to use the `.cjs` extension for commons js which then breaks these
sorts of tools.

This change removes `type: "module"` and uses the `.js` extension for cjs
files and `.mjs` for esm for maximum compatibiliy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants