Skip to content

Remove warning for tree-shaken external imports being unused (#2112) - #2124

Merged
lukastaegert merged 2 commits into
masterfrom
external-import-treeshake
Apr 16, 2018
Merged

Remove warning for tree-shaken external imports being unused (#2112)#2124
lukastaegert merged 2 commits into
masterfrom
external-import-treeshake

Conversation

@guybedford

Copy link
Copy Markdown
Contributor

See discussion in #2112.

Comment thread src/ExternalModule.ts Outdated
.filter(name => {
const declaration = this.declarations[name];
return !declaration.included && !this.reexported && !declaration.referenced;
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might make sense to combine the double filter to avoid an iteration

@lukastaegert lukastaegert added this to the 0.58.0 milestone Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants