Should my expectation for dead code elimination be closer to, "it eliminates virtually all dead code" or "it's better than nothing but it doesn't scale well to large use cases?"
I'm creating a project with the OPENRNDR framework as a dependency and the production js ends up at 700KB, which is about 10x what I was expecting.
b
Big Chungus
05/25/2022, 7:22 AM
The latter, sadly
Big Chungus
05/25/2022, 7:22 AM
It will get better once es6 support lands
j
Jonathan Ellis
05/25/2022, 12:20 PM
@Big Chungus thanks. is there a way to figure out were the size is coming from? then I could potentially manually reduce dependencies
b
Big Chungus
05/25/2022, 2:57 PM
Not really. You could try regular webpack tooling for that, but I suspect it will not get you too far.
Your best bet is adding/removing dependencies one by one and seeing how much the size increases with each