News for hackers. Stuff that matters.
Re:My failed attempt to shrink all NPM packages by 5% by KTibow on Monday January 27, 2025 @10:48AM (#42842336)
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.
Re:My failed attempt to shrink all NPM packages by 5% by avodonosov on Monday January 27, 2025 @11:18AM (#42842672)
That's not tree-shaking.
Re:My failed attempt to shrink all NPM packages by 5% by KTibow on Monday January 27, 2025 @06:22PM (#42847004)
Oh, I guess you would need something like dynamic imports to not include uncommonly used functionality in the main bundle