Skip to content

Commit

Permalink
add isModulesHash(right) check
Browse files Browse the repository at this point in the history
  • Loading branch information
Spikef committed May 6, 2020
1 parent 7ff994b commit 77403b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parseUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function parseBundle(bundlePath) {
ast,
walkState,
{
AssignmentExpression(node, state,) {
AssignmentExpression(node, state) {
if (state.locations) return;

// Modules are stored in exports.modules:
Expand All @@ -35,7 +35,8 @@ function parseBundle(bundlePath) {
if (
left &&
left.object && left.object.name === 'exports' &&
left.property && left.property.name === 'modules'
left.property && left.property.name === 'modules' &&
isModulesHash(right)
) {
state.locations = getModulesLocations(right);
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 77403b1

Please sign in to comment.