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.
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