stealjs / steal-tools

Build easy. Load fast.
https://stealjs.com/docs/steal-tools.html
MIT License
67 stars 23 forks source link

Enable tree-shaking ES modules only imported by non-ES modules #1070

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

This fixes #1068.

While we do not tree shake non-ES modules, we should take their dependencies into consideration so that they will be treeshaken, in case they are not imported by another ES module.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.009%) to 93.665% when pulling aa98380c2d3c336c20e6957f3eb8c31fb6b00ec3 on amd-shake into 1397fe6cef49cc9c372801075e25afd7b664fa85 on master.