brix / crypto-js

JavaScript library of crypto standards.
Other
15.88k stars 2.39k forks source link

fix: make it tree-shakable #496

Open yuzheng14 opened 3 months ago

yuzheng14 commented 3 months ago

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.