stealjs / steal

Gets JavaScript
https://stealjs.com
MIT License
1.37k stars 521 forks source link

Account for non-ES modules in parent tree #1479

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

When re-walking the parent modules in order to perform tree-shaking, account for the fact that there might be non-ES modules in the tree.

Previously we were detecting non-ES modules in the "first pass" but not latter passes that occur when more modules start being imported with mutual dependencies.

Closes #1477