by bigjoemuffaraw · 4y ago · 0 comments
I was under the impression that production builds often include tree-shaking/dead-code-elimination as one of the steps?
This is a decent article that discusses the basic strategies:
https://www.smashingmagazine.com/2021/05/tree-shaking-refere...
But basically tree shaking and dead code elimination can only be effective as the code you write. If you make it hard to parse with ASTs, it's going to hard to tree shake.