Skip to content

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