From def2d49f633c1a5a2aefa7e7932efb2b9cb40063 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 6 May 2019 19:27:21 -0700 Subject: [PATCH] Update shake.js --- packages/core/parcel-bundler/src/scope-hoisting/shake.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); }