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

Add sideEffects to package.json #51

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Jun 3, 2022

Hi! We are trying to use this library in @shopify/hydrogen but noticed it cannot be tree-shaked.

This PR adds sideEffects property to package.json, which is useful to let bundlers like Webpack or Rollup know that this library can be tree-shaked in ESM.

Related to #50

@nfriedly
Copy link
Owner

nfriedly commented Jun 3, 2022

Oh, cool!

I'll merge this in now and get a release out in a little bit.

@nfriedly nfriedly merged commit fdda23d into nfriedly:master Jun 3, 2022
@nfriedly
Copy link
Owner

nfriedly commented Jun 4, 2022

Just published to npm in v2.5.0.

Funny story: I interviewed at Shopify a while back - it didn't pan out then, but looks like we're working together after all :)

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