4 ms·
I think this is called tree shaking and Vite/Rollup do this by default these days. Of course, it's easy when you explicitly say what you're importing.
by KTibow 2y ago
I think this is called tree shaking and Vite/Rollup do this by default these days. Of course, it's easy when you explicitly say what you're importing.
- avodonosov 2y agoThat's not tree-shaking.
- KTibow 2y agoOh, I guess you would need something like dynamic imports to not include uncommonly used functionality in the main bundle