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

chore: Add sideEffects hint for ESM bundlers. #843

Closed
wants to merge 1 commit into from

Conversation

epiqueras
Copy link

See https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free.

What: This PR adds the sideEffects hint to package.json. This assumes that Downshift does not introduce any side effects.

Why: So that bundlers can tree shake the ESM distribution of Downshift more efficiently

How: A simple boolean flag was added in package.json.

Checklist:

  • Documentation N/A
  • Tests N/A
  • Ready to be merged

I am only assuming Downshift has no side effects. We should verify that before merging this.

@silviuaavram
Copy link
Collaborator

closing this in favour of #850

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.

2 participants