Closed Utwo closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/code4romania/taskforce-fe-components/oj7v7on37 ✅ Preview: https://taskforce-fe-components-git-bundle-size.code4romania.now.sh
I added a config to rollup in which I export in multiple bundles by hand. It's still not using tree-shaking feature but it's still a plus.
Before:
After:
I think we still need to find a way to use the tree-shaking capabilities
What changed?
Exported everything with a specific named export. Add module:false in babel config. Add commonjs plugin in rollup config.
I still don't know if this is enough for the consumer app to tree-shake this or not. Waiting for your help!
Actions (optional)
../src/index.js