@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.191 to 2.0.0-nightly.195
@@ -94,3 +94,3 @@ "use strict"; | ||
function resolveSymbol(inputAsset, inputSymbol) { | ||
function resolveSymbol(inputAsset, inputSymbol, bundle) { | ||
let { | ||
@@ -100,3 +100,3 @@ asset, | ||
symbol | ||
} = bundleGraph.resolveSymbol(inputAsset, inputSymbol); | ||
} = bundleGraph.resolveSymbol(inputAsset, inputSymbol, bundle); | ||
@@ -134,3 +134,3 @@ if (asset.meta.resolveExportsBailedOut) { | ||
identifier | ||
} = resolveSymbol(originalModule, originalName); | ||
} = resolveSymbol(originalModule, originalName, bundle); | ||
let node; | ||
@@ -144,4 +144,4 @@ | ||
if (!node && (!mod.meta.id || !assets.has((0, _utils.assertString)(mod.meta.id)))) { | ||
node = addBundleImport(originalModule, path); | ||
return node ? interop(originalModule, originalName, path, node) : null; | ||
node = addBundleImport(mod, path); | ||
return node ? interop(mod, symbol, path, node) : null; | ||
} // If this is an ES6 module, throw an error if we cannot resolve the module | ||
@@ -148,0 +148,0 @@ |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.191+3a972d8c", | ||
"version": "2.0.0-nightly.195+b39859b6", | ||
"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.1813+3a972d8c", | ||
"@parcel/diagnostic": "2.0.0-nightly.191+3a972d8c", | ||
"@parcel/source-map": "^2.0.0-alpha.4.3", | ||
"@parcel/utils": "2.0.0-nightly.191+3a972d8c", | ||
"@parcel/babylon-walk": "2.0.0-nightly.1817+b39859b6", | ||
"@parcel/diagnostic": "2.0.0-nightly.195+b39859b6", | ||
"@parcel/source-map": "^2.0.0-alpha.4.6", | ||
"@parcel/utils": "2.0.0-nightly.195+b39859b6", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "3a972d8c9c2333b3dd052e6e795002b665bf625a" | ||
"gitHead": "b39859b650259ea8977260c73749f3c4ffeef947" | ||
} |
@@ -122,6 +122,7 @@ // @flow | ||
function resolveSymbol(inputAsset, inputSymbol: Symbol) { | ||
function resolveSymbol(inputAsset, inputSymbol: Symbol, bundle) { | ||
let {asset, exportSymbol, symbol} = bundleGraph.resolveSymbol( | ||
inputAsset, | ||
inputSymbol, | ||
bundle, | ||
); | ||
@@ -155,2 +156,3 @@ if (asset.meta.resolveExportsBailedOut) { | ||
originalName, | ||
bundle, | ||
); | ||
@@ -165,4 +167,4 @@ | ||
if (!node && (!mod.meta.id || !assets.has(assertString(mod.meta.id)))) { | ||
node = addBundleImport(originalModule, path); | ||
return node ? interop(originalModule, originalName, path, node) : null; | ||
node = addBundleImport(mod, path); | ||
return node ? interop(mod, symbol, path, node) : null; | ||
} | ||
@@ -169,0 +171,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
188886
4978