Skip to content

Commit

Permalink
fix: importKey
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 28, 2020
1 parent 524334f commit 822af3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/instrument/src/babel/extract-component.ts
Expand Up @@ -88,7 +88,11 @@ export const extractComponent = async (
}
return {
...acc,
[from]: [{ name, from, importedName, key: importKey }],
[from]: [
importKey
? { name, from, importedName, key: importKey }
: { name, from, importedName },
],
};
}, {});
component.externalDependencies = Object.keys(allImports)
Expand Down

0 comments on commit 822af3c

Please sign in to comment.