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

Annotate curry calls as #__PURE__ #67

Merged

Conversation

Andarist
Copy link
Contributor

This should make pathOr tree-shakeable as its a result of a curry call that cannot be tree-shaken easily (as you know), by annotating it with #__PURE__ (with the help of the babel plugin) we give a hint to uglifyJS that it can be removed if the call's result stay unused

@selfrefactor
Copy link
Owner

Thank you for your PR. It is merged and will be applied in the next patch version.

@selfrefactor selfrefactor merged commit 1196ea4 into selfrefactor:master May 23, 2018
@Andarist Andarist deleted the tree-shaking-improvements branch May 23, 2018 09:07
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.

None yet

2 participants