@parcel/scope-hoisting
Advanced tools
Comparing version 2.0.0-nightly.612 to 2.0.0-nightly.616
@@ -378,3 +378,3 @@ "use strict"; | ||
while ((_scope = scope) === null || _scope === void 0 ? void 0 : _scope.parent) { | ||
while ((_scope = scope) !== null && _scope !== void 0 && _scope.parent) { | ||
var _scope; | ||
@@ -381,0 +381,0 @@ |
@@ -431,3 +431,3 @@ "use strict"; | ||
if ((_asset$symbols$get = asset.symbols.get(local)) === null || _asset$symbols$get === void 0 ? void 0 : (_asset$symbols$get$me = _asset$symbols$get.meta) === null || _asset$symbols$get$me === void 0 ? void 0 : _asset$symbols$get$me.isPure) { | ||
if ((_asset$symbols$get = asset.symbols.get(local)) !== null && _asset$symbols$get !== void 0 && (_asset$symbols$get$me = _asset$symbols$get.meta) !== null && _asset$symbols$get$me !== void 0 && _asset$symbols$get$me.isPure) { | ||
return usedSymbols.has(local) || usedSymbols.has('*'); | ||
@@ -576,3 +576,3 @@ } | ||
specifiers: new Map(), | ||
isCommonJS: !!((_dep$meta = dep.meta) === null || _dep$meta === void 0 ? void 0 : _dep$meta.isCommonJS), | ||
isCommonJS: !!((_dep$meta = dep.meta) !== null && _dep$meta !== void 0 && _dep$meta.isCommonJS), | ||
loc: (0, _babelAstUtils().convertBabelLoc)(node.loc) | ||
@@ -579,0 +579,0 @@ }; |
@@ -130,3 +130,3 @@ "use strict"; | ||
let parentBundles = bundleGraph.getParentBundles(bundle); | ||
let mightBeFirstJS = parentBundles.length === 0 || parentBundles.some(b => b.type !== 'js') || bundleGraph.getBundleGroupsContainingBundle(bundle).some(g => bundleGraph.isEntryBundleGroup(g)) || bundle.env.isIsolated() || !!((_bundle$getMainEntry = bundle.getMainEntry()) === null || _bundle$getMainEntry === void 0 ? void 0 : _bundle$getMainEntry.isIsolated); // If this might be loaded as the first script in the context and it is referenced by other bundles, | ||
let mightBeFirstJS = parentBundles.length === 0 || parentBundles.some(b => b.type !== 'js') || bundleGraph.getBundleGroupsContainingBundle(bundle).some(g => bundleGraph.isEntryBundleGroup(g)) || bundle.env.isIsolated() || !!((_bundle$getMainEntry = bundle.getMainEntry()) !== null && _bundle$getMainEntry !== void 0 && _bundle$getMainEntry.isIsolated); // If this might be loaded as the first script in the context and it is referenced by other bundles, | ||
// we need to add the prelude code, which allows registering modules dynamically at runtime. | ||
@@ -147,3 +147,3 @@ | ||
// then this bundle is an "entry" | ||
return !bundleGraph.hasParentBundleOfType(bundle, 'js') || bundle.env.isIsolated() || !!((_bundle$getMainEntry2 = bundle.getMainEntry()) === null || _bundle$getMainEntry2 === void 0 ? void 0 : _bundle$getMainEntry2.isIsolated); | ||
return !bundleGraph.hasParentBundleOfType(bundle, 'js') || bundle.env.isIsolated() || !!((_bundle$getMainEntry2 = bundle.getMainEntry()) !== null && _bundle$getMainEntry2 !== void 0 && _bundle$getMainEntry2.isIsolated); | ||
} | ||
@@ -150,0 +150,0 @@ |
{ | ||
"name": "@parcel/scope-hoisting", | ||
"version": "2.0.0-nightly.612+8a4fa3ee", | ||
"version": "2.0.0-nightly.616+6ce9e707", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -27,11 +27,11 @@ "license": "MIT", | ||
"@babel/types": "^7.12.13", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2234+8a4fa3ee", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2234+8a4fa3ee", | ||
"@parcel/diagnostic": "2.0.0-nightly.612+8a4fa3ee", | ||
"@parcel/babel-ast-utils": "2.0.0-nightly.2238+6ce9e707", | ||
"@parcel/babylon-walk": "2.0.0-nightly.2238+6ce9e707", | ||
"@parcel/diagnostic": "2.0.0-nightly.616+6ce9e707", | ||
"@parcel/source-map": "2.0.0-alpha.4.21", | ||
"@parcel/utils": "2.0.0-nightly.612+8a4fa3ee", | ||
"@parcel/utils": "2.0.0-nightly.616+6ce9e707", | ||
"globals": "^13.2.0", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "8a4fa3ee3716087a38fc60d482da18a3a7bc3370" | ||
"gitHead": "6ce9e707443e609e1961d24a6563bc68a83a1486" | ||
} |
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
254775