@parcel/packager-js
Advanced tools
Comparing version 2.0.0-canary.1612 to 2.0.0-canary.1613
@@ -217,3 +217,5 @@ "use strict"; | ||
shouldBundleQueue(bundle) { | ||
return this.useAsyncBundleRuntime && bundle.type === 'js' && bundle.bundleBehavior !== 'inline' && bundle.env.outputFormat === 'esmodule' && !bundle.env.isIsolated() && bundle.bundleBehavior !== 'isolated' && !this.bundleGraph.hasParentBundleOfType(bundle, 'js'); | ||
let referencingBundles = this.bundleGraph.getReferencingBundles(bundle); | ||
let hasHtmlReference = referencingBundles.some(b => b.type === 'html'); | ||
return this.useAsyncBundleRuntime && bundle.type === 'js' && bundle.bundleBehavior !== 'inline' && bundle.env.outputFormat === 'esmodule' && !bundle.env.isIsolated() && bundle.bundleBehavior !== 'isolated' && hasHtmlReference; | ||
} | ||
@@ -220,0 +222,0 @@ runWhenReady(bundle, codeToRun) { |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-canary.1612+a249debd4", | ||
"version": "2.0.0-canary.1613+68bcdec6f", | ||
"license": "MIT", | ||
@@ -20,15 +20,15 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"parcel": "^2.0.0-canary.1610+a249debd4" | ||
"parcel": "^2.0.0-canary.1611+68bcdec6f" | ||
}, | ||
"dependencies": { | ||
"@parcel/diagnostic": "2.0.0-canary.1612+a249debd4", | ||
"@parcel/plugin": "2.0.0-canary.1612+a249debd4", | ||
"@parcel/rust": "2.12.1-canary.3235+a249debd4", | ||
"@parcel/diagnostic": "2.0.0-canary.1613+68bcdec6f", | ||
"@parcel/plugin": "2.0.0-canary.1613+68bcdec6f", | ||
"@parcel/rust": "2.12.1-canary.3236+68bcdec6f", | ||
"@parcel/source-map": "^2.1.1", | ||
"@parcel/types": "2.0.0-canary.1612+a249debd4", | ||
"@parcel/utils": "2.0.0-canary.1612+a249debd4", | ||
"@parcel/types": "2.0.0-canary.1613+68bcdec6f", | ||
"@parcel/utils": "2.0.0-canary.1613+68bcdec6f", | ||
"globals": "^13.2.0", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "a249debd492457ee33f093ea2cfc3c89179ad045" | ||
"gitHead": "68bcdec6f706b9c81c1160cb89abca4fb764b838" | ||
} |
@@ -37,3 +37,2 @@ // @flow | ||
} from './utils'; | ||
// General regex used to replace imports with the resolved code, references with resolutions, | ||
@@ -268,2 +267,5 @@ // and count the number of newlines in the file for source maps. | ||
shouldBundleQueue(bundle: NamedBundle): boolean { | ||
let referencingBundles = this.bundleGraph.getReferencingBundles(bundle); | ||
let hasHtmlReference = referencingBundles.some(b => b.type === 'html'); | ||
return ( | ||
@@ -276,3 +278,3 @@ this.useAsyncBundleRuntime && | ||
bundle.bundleBehavior !== 'isolated' && | ||
!this.bundleGraph.hasParentBundleOfType(bundle, 'js') | ||
hasHtmlReference | ||
); | ||
@@ -279,0 +281,0 @@ } |
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
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
156090
3997