Skip to content

Commit

Permalink
Update shake.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed May 7, 2019
1 parent 15680c2 commit def2d49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/parcel-bundler/src/scope-hoisting/shake.js
Expand Up @@ -76,8 +76,7 @@ function isExportAssignment(path) {
// match "path.any = any;"
path.parentPath.isMemberExpression() &&
path.parentPath.parentPath.isAssignmentExpression() &&
path.parentPath.parentPath.node.left === path.parentPath.node &&
path.parentPath.parentPath.get('right').isPure()
path.parentPath.parentPath.node.left === path.parentPath.node
);
}

Expand Down

0 comments on commit def2d49

Please sign in to comment.