Re:Tiny Treeshaker: JavaScript tree shaking in 200 lines of ...
by ygra on Tuesday June 29, 2021 @09:34AM
(#27675546)
Well, there are techniques. One of the hackier ones is probably the one described here: https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...
Same strategy could be used for "tree shaking"?
I'll ponder how unused functions might be identified (during runtime).