stealjs / steal

Gets JavaScript
https://stealjs.com
MIT License
1.36k stars 522 forks source link

Overagressive about tree shaking modules used by other modules that re-export #1432

Closed matthewp closed 6 years ago

matthewp commented 6 years ago

I think this can be recreated with:

one.js

import { foo } from './two';

window.foo = foo;

two.js

export { foo } from './three';
export { bar } from './other';

three.js

export { default } from './four';

four.js

module.exports = "works";
matthewp commented 6 years ago

Looks like this was a case of using an older steal version. Closing as I don't think there's a bug here.