diff --git a/packages/core/parcel-bundler/src/scope-hoisting/shake.js b/packages/core/parcel-bundler/src/scope-hoisting/shake.js index 6a22b18ebe6..f8bdc3e7712 100644 --- a/packages/core/parcel-bundler/src/scope-hoisting/shake.js +++ b/packages/core/parcel-bundler/src/scope-hoisting/shake.js @@ -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 ); }