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

build(esm): modify rollup.config.js and package.json for better ESM packaging #650

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tkamenoko
Copy link

fix #649

…standard

To meet Node.js standard, 2 things should be fixed:

* ESM file should use `.mjs` extention
instead of `.esm.js`.
* `module` field in `package.json` is not standard way of Node.js. Use
`exports` field instead.

fix styled-components#649
@tkamenoko tkamenoko requested a review from bhough as a code owner March 25, 2024 16:19
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.

Use exports field with .mjs extension instead of "module": "dist/polished.esm.js" in package.json
1 participant