tree shaking ignoring aliased import
m-mujica opened this issue · 0 comments
m-mujica commented
I have a moduleA like:
import * as foo from './moduleB';
where moduleB looks like:
export { default as bar } from 'moduleC';
export { default as baz } from 'moduleD';
Steal tree shaking logic is treating moduleB as dead code, transpiling it to an empty module:
...
System.register([], function (_export, _context) {
"use strict";
return {
setters: [],
execute: function () {
_export("__esModule", true);
}
};
...