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: make it tree-shakable #496

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

Conversation

yuzheng14
Copy link

description

when the content using crypto-js is not used, it should be tree-shaken. But it will still bundle about 200 KB sizes.

For example, if I import nothing except plain package name:

import 'crypto-js'

It will bundle about 200 KB size content into output. So it need a sideEffects property to declare that it has no sideEffects and can be tree-shaken safely.

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.

1 participant