Make library tree shakeable
Closed this issue ยท 1 comments
nfantone commented
As reported by BundlePhobia, ramda-land
is not tree-shakeable.
Useful resources:
ramda-adjunct@2.28.0
BundlePhobia report.- Related
package.json
fields to enable tree-shaking on Webpack. - Official Webpack docs on Tree Shaking.
TLDR;
[...] in order to take advantage of tree shaking, you must...
- Use ES2015 module syntax (i.e.
import
andexport
).- Ensure no compilers transform your ES2015 module syntax into CommonJS modules.
- Add a
"sideEffects"
property to your project'spackage.json
file.- Use the
production
mode configuration option to enable various optimizations including minification and tree shaking.
flybondi-nelson commented
๐ This issue has been resolved in version 4.0.5 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐