@parcel/packager-js
Advanced tools
Comparing version 2.0.0-canary.1769 to 2.0.0-canary.1770
@@ -220,3 +220,5 @@ "use strict"; | ||
} else if (this.bundle.env.isNode()) { | ||
let bundles = this.bundleGraph.getReferencedBundles(this.bundle); | ||
let bundles = this.bundleGraph.getReferencedBundles(this.bundle, { | ||
includeInline: false | ||
}); | ||
for (let b of bundles) { | ||
@@ -226,3 +228,7 @@ if (b.type !== 'js') { | ||
} | ||
importScripts += `require("${(0, _utils().relativeBundlePath)(this.bundle, b)}");\n`; | ||
if (this.bundle.env.outputFormat === 'esmodule') { | ||
importScripts += `import "${(0, _utils().relativeBundlePath)(this.bundle, b)}";\n`; | ||
} else { | ||
importScripts += `require("${(0, _utils().relativeBundlePath)(this.bundle, b)}");\n`; | ||
} | ||
} | ||
@@ -229,0 +235,0 @@ } |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-canary.1769+337c31c68", | ||
"version": "2.0.0-canary.1770+e3a2b726d", | ||
"license": "MIT", | ||
@@ -20,15 +20,15 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"parcel": "^2.0.0-canary.1767+337c31c68" | ||
"parcel": "^2.0.0-canary.1768+e3a2b726d" | ||
}, | ||
"dependencies": { | ||
"@parcel/diagnostic": "2.0.0-canary.1769+337c31c68", | ||
"@parcel/plugin": "2.0.0-canary.1769+337c31c68", | ||
"@parcel/rust": "2.13.4-canary.3392+337c31c68", | ||
"@parcel/diagnostic": "2.0.0-canary.1770+e3a2b726d", | ||
"@parcel/plugin": "2.0.0-canary.1770+e3a2b726d", | ||
"@parcel/rust": "2.13.4-canary.3393+e3a2b726d", | ||
"@parcel/source-map": "^2.1.1", | ||
"@parcel/types": "2.0.0-canary.1769+337c31c68", | ||
"@parcel/utils": "2.0.0-canary.1769+337c31c68", | ||
"@parcel/types": "2.0.0-canary.1770+e3a2b726d", | ||
"@parcel/utils": "2.0.0-canary.1770+e3a2b726d", | ||
"globals": "^13.2.0", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "337c31c68ff350f1a971752746bb0e01583f5ef4" | ||
"gitHead": "e3a2b726db9382a873834da82746671d54557d2b" | ||
} |
@@ -279,3 +279,5 @@ // @flow strict-local | ||
} else if (this.bundle.env.isNode()) { | ||
let bundles = this.bundleGraph.getReferencedBundles(this.bundle); | ||
let bundles = this.bundleGraph.getReferencedBundles(this.bundle, { | ||
includeInline: false, | ||
}); | ||
for (let b of bundles) { | ||
@@ -285,3 +287,10 @@ if (b.type !== 'js') { | ||
} | ||
importScripts += `require("${relativeBundlePath(this.bundle, b)}");\n`; | ||
if (this.bundle.env.outputFormat === 'esmodule') { | ||
importScripts += `import "${relativeBundlePath(this.bundle, b)}";\n`; | ||
} else { | ||
importScripts += `require("${relativeBundlePath( | ||
this.bundle, | ||
b, | ||
)}");\n`; | ||
} | ||
} | ||
@@ -288,0 +297,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
164789
4234