Skip to content

Commit 77403b1

Browse files
committed
add isModulesHash(right) check
1 parent 7ff994b commit 77403b1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/parseUtils.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function parseBundle(bundlePath) {
2525
ast,
2626
walkState,
2727
{
28-
AssignmentExpression(node, state,) {
28+
AssignmentExpression(node, state) {
2929
if (state.locations) return;
3030

3131
// Modules are stored in exports.modules:
@@ -35,7 +35,8 @@ function parseBundle(bundlePath) {
3535
if (
3636
left &&
3737
left.object && left.object.name === 'exports' &&
38-
left.property && left.property.name === 'modules'
38+
left.property && left.property.name === 'modules' &&
39+
isModulesHash(right)
3940
) {
4041
state.locations = getModulesLocations(right);
4142
}

0 commit comments

Comments
 (0)