@parcel/packager-webextension
Advanced tools
Comparing version 2.7.1-nightly.2802 to 2.7.1-nightly.2806
@@ -56,2 +56,4 @@ "use strict"; | ||
}) { | ||
var _manifest$background; | ||
let assets = []; | ||
@@ -70,2 +72,9 @@ bundle.traverseAssets(asset => { | ||
const manifest = JSON.parse(await asset.getCode()); | ||
if (((_manifest$background = manifest.background) === null || _manifest$background === void 0 ? void 0 : _manifest$background.type) === 'module') { | ||
// service workers are built with output format 'global' | ||
// see: https://github.com/parcel-bundler/parcel/blob/3329469f50de9326c5b02ef0ab1c0ce41393279c/packages/transformers/js/src/JSTransformer.js#L577 | ||
delete manifest.background.type; | ||
} | ||
const deps = asset.getDependencies(); | ||
@@ -72,0 +81,0 @@ const war = []; |
{ | ||
"name": "@parcel/packager-webextension", | ||
"version": "2.7.1-nightly.2802+4ba031aa4", | ||
"version": "2.7.1-nightly.2806+8b8e650a9", | ||
"license": "MIT", | ||
@@ -20,10 +20,10 @@ "publishConfig": { | ||
"node": ">=12.0.0", | ||
"parcel": "2.0.0-nightly.1177+4ba031aa4" | ||
"parcel": "2.0.0-nightly.1181+8b8e650a9" | ||
}, | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.1179+4ba031aa4", | ||
"@parcel/utils": "2.0.0-nightly.1179+4ba031aa4", | ||
"@parcel/plugin": "2.0.0-nightly.1183+8b8e650a9", | ||
"@parcel/utils": "2.0.0-nightly.1183+8b8e650a9", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "4ba031aa44d14b48e97d8172daeae8c24a423294" | ||
"gitHead": "8b8e650a9c1e12e530bbfdcf05f8f552bb19ac88" | ||
} |
@@ -26,2 +26,9 @@ // @flow strict-local | ||
const manifest = JSON.parse(await asset.getCode()); | ||
if (manifest.background?.type === 'module') { | ||
// service workers are built with output format 'global' | ||
// see: https://github.com/parcel-bundler/parcel/blob/3329469f50de9326c5b02ef0ab1c0ce41393279c/packages/transformers/js/src/JSTransformer.js#L577 | ||
delete manifest.background.type; | ||
} | ||
const deps = asset.getDependencies(); | ||
@@ -28,0 +35,0 @@ const war = []; |
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
9267
198