@parcel/packager-js
Advanced tools
Comparing version 2.0.0-nightly.214 to 2.0.0-nightly.219
@@ -55,8 +55,12 @@ "use strict"; | ||
if (bundle.env.scopeHoist) { | ||
let ast = await (0, _scopeHoisting.concat)(bundle, bundleGraph); | ||
ast = (0, _scopeHoisting.link)({ | ||
let wrappedAssets = new Set(); | ||
let { | ||
ast, | ||
referencedAssets | ||
} = (0, _scopeHoisting.link)({ | ||
bundle, | ||
bundleGraph, | ||
ast, | ||
options | ||
ast: await (0, _scopeHoisting.concat)(bundle, bundleGraph, wrappedAssets), | ||
options, | ||
wrappedAssets | ||
}); | ||
@@ -66,3 +70,9 @@ let { | ||
map | ||
} = (0, _scopeHoisting.generate)(bundleGraph, bundle, ast, options); | ||
} = (0, _scopeHoisting.generate)({ | ||
bundleGraph, | ||
bundle, | ||
ast, | ||
referencedAssets, | ||
options | ||
}); | ||
return replaceReferences({ | ||
@@ -69,0 +79,0 @@ contents: contents + '\n' + (await getSourceMapSuffix(getSourceMapReference, map)), |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-nightly.214+52fd6741", | ||
"version": "2.0.0-nightly.219+f9f7320b", | ||
"license": "MIT", | ||
@@ -19,6 +19,6 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.214+52fd6741", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.214+52fd6741", | ||
"@parcel/plugin": "2.0.0-nightly.219+f9f7320b", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.219+f9f7320b", | ||
"@parcel/source-map": "^2.0.0-alpha.4.9", | ||
"@parcel/utils": "2.0.0-nightly.214+52fd6741", | ||
"@parcel/utils": "2.0.0-nightly.219+f9f7320b", | ||
"nullthrows": "^1.1.1" | ||
@@ -29,3 +29,3 @@ }, | ||
}, | ||
"gitHead": "52fd6741a0ea1f2e043c628cf6b7be0715b1c837" | ||
"gitHead": "f9f7320bed19a9a2a7d75d5c6da657272b4b44ef" | ||
} |
@@ -48,6 +48,18 @@ // @flow strict-local | ||
if (bundle.env.scopeHoist) { | ||
let ast = await concat(bundle, bundleGraph); | ||
ast = link({bundle, bundleGraph, ast, options}); | ||
let wrappedAssets = new Set<string>(); | ||
let {ast, referencedAssets} = link({ | ||
bundle, | ||
bundleGraph, | ||
ast: await concat(bundle, bundleGraph, wrappedAssets), | ||
options, | ||
wrappedAssets, | ||
}); | ||
let {contents, map} = generate(bundleGraph, bundle, ast, options); | ||
let {contents, map} = generate({ | ||
bundleGraph, | ||
bundle, | ||
ast, | ||
referencedAssets, | ||
options, | ||
}); | ||
return replaceReferences({ | ||
@@ -54,0 +66,0 @@ contents: |
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
22522
616