Skip to content

Commit

Permalink
support namespace treeshaking as well
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jun 8, 2020
1 parent 9c8082f commit 72933b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup-plugin-wrap-install-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function rollupPluginWrapInstallTargets(
if (
isTreeshake &&
installTargetsByFile[val].length > 0 &&
!installTargetsByFile[val].some((imp) => imp.all)
!installTargetsByFile[val].some((imp) => imp.namespace || imp.all)
) {
input[key] = `snowpack-wrap:${val}`;
}
Expand Down

0 comments on commit 72933b3

Please sign in to comment.