Skip to content

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.

2 participants