Skip to content

Commit

Permalink
fix: components package hash in same file
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 29, 2020
1 parent deb1653 commit d47b57d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/instrument/src/babel/extract-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export const extractComponent = async (
};
}

globalCache[filePath] = { component, componentPackage };
return globalCache[filePath];
globalCache[cacheKey] = { component, componentPackage };
return globalCache[cacheKey];
};

export const extractStoreComponent = async (
Expand Down
2 changes: 1 addition & 1 deletion core/instrument/src/misc/package-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const packageInfo = async (
peerDependencies,
} = packageJSON;
const result: PackageInfo = {
fileHash: hashStoreId(filePath),
fileHash: hashStoreId(`${filePath}-${partName}`),
name,
version,
repository: {},
Expand Down

0 comments on commit d47b57d

Please sign in to comment.