Skip to content

Conversation

@0x009922
Copy link

Description

I've added /* @__PURE__ */ marks in a few places. In particular - in hasPassiveEvents and isIosDevice initialization code. Unless these variables are actually used in the final bundle, their initialization code now can be safely removed.

More about tree shake annotations:

Linked issues

Fixes #254

@0x009922 0x009922 changed the title Fix tree-shakeability by adding some /* @__PURE__ */ marks Fix tree shake by adding some /* @__PURE__ */ marks May 30, 2022
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.

The package is not tree-shakeable due to side-effects

1 participant