@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.282 to 2.0.0-nightly.284
@@ -238,4 +238,8 @@ "use strict"; | ||
if (!path.scope.parent && !path.scope.getData('shouldWrap')) { | ||
path.replaceWith(getExportsIdentifier(asset, path.scope)); | ||
asset.meta.isCommonJS = true; | ||
if (asset.meta.isES6Module) { | ||
path.replaceWith(t.identifier('undefined')); | ||
} else { | ||
path.replaceWith(getExportsIdentifier(asset, path.scope)); | ||
asset.meta.isCommonJS = true; | ||
} | ||
} | ||
@@ -242,0 +246,0 @@ }, |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.282+948cccd3", | ||
"version": "2.0.0-nightly.284+5d60c689", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -24,9 +24,9 @@ "license": "MIT", | ||
"@babel/types": "^7.3.3", | ||
"@parcel/babylon-walk": "2.0.0-nightly.1904+948cccd3", | ||
"@parcel/diagnostic": "2.0.0-nightly.282+948cccd3", | ||
"@parcel/babylon-walk": "2.0.0-nightly.1906+5d60c689", | ||
"@parcel/diagnostic": "2.0.0-nightly.284+5d60c689", | ||
"@parcel/source-map": "2.0.0-alpha.4.11", | ||
"@parcel/utils": "2.0.0-nightly.282+948cccd3", | ||
"@parcel/utils": "2.0.0-nightly.284+5d60c689", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "948cccd392eecf15ccbd08b91a0de239f6a3abcc" | ||
"gitHead": "5d60c6897cbdfc50b105e83a8bc5392c389002d8" | ||
} |
@@ -300,4 +300,8 @@ // @flow | ||
if (!path.scope.parent && !path.scope.getData('shouldWrap')) { | ||
path.replaceWith(getExportsIdentifier(asset, path.scope)); | ||
asset.meta.isCommonJS = true; | ||
if (asset.meta.isES6Module) { | ||
path.replaceWith(t.identifier('undefined')); | ||
} else { | ||
path.replaceWith(getExportsIdentifier(asset, path.scope)); | ||
asset.meta.isCommonJS = true; | ||
} | ||
} | ||
@@ -304,0 +308,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
225671
6026