Skip to content

Commit

Permalink
fix(rollup): collect all import specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 28, 2020
1 parent e8f6cb0 commit 13d5fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mergers/rollup.mjs
Expand Up @@ -233,7 +233,9 @@ function importDeclarationsByLocalName(ast) {

for (const decl of ast.program.body) {
if (decl.type === "ImportDeclaration") {
declarations.set(decl.specifiers[0].local.name, decl);
for(const spec of decl.specifiers) {
declarations.set(spec.local.name, decl);
}
}
}

Expand Down

0 comments on commit 13d5fbf

Please sign in to comment.