Skip to content

Commit

Permalink
fix: use resolved filename for component
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 9, 2020
1 parent 80d2140 commit 6a45ddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/instrument/src/babel/extract-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export const extractComponent = async (
if (follow.importedName) {
component.importedName = follow.importedName;
}
if (follow.originalFilePath) {
if (follow.filePath) {
const saveSource = readSourceFile(
components?.sourceFiles,
follow.source,
componentName,
follow.originalFilePath,
follow.filePath,
);
if (saveSource) {
component.source = saveSource;
Expand All @@ -65,7 +65,7 @@ export const extractComponent = async (
}
componentPackage = await packageInfo(
componentName,
follow.originalFilePath,
follow.filePath,
options?.components?.package,
);
} else {
Expand Down

0 comments on commit 6a45ddd

Please sign in to comment.