Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree shaking ignoring aliased import #1111

Open
m-mujica opened this issue Mar 1, 2019 · 0 comments
Open

tree shaking ignoring aliased import #1111

m-mujica opened this issue Mar 1, 2019 · 0 comments

Comments

@m-mujica
Copy link
Contributor

m-mujica commented Mar 1, 2019

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);
    }
  };
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant