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

Fix tree shake by adding some /* @__PURE__ */ marks #255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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