4 ms·
> Support for tree-shaking in Javascript build tools is improving. I agree tree shaking could help a lot. But every time I have tried to implement tree shakin
by qudat 8y ago
> Support for tree-shaking in Javascript build tools is improving.
I agree tree shaking could help a lot. But every time I have tried to implement tree shaking properly in a JS codebase, it is not trivial to solve. If one configuration is not properly setup then the entire library gets inlined during compilation.
Furthermore, libraries like lodash use a lot of inter dependencies so using something like `get` could bring in a ton of stuff that is technically used but totally unnecessary.