Skip to content

Commit

Permalink
fix: wars for mv3 not include original wars (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv authored Oct 5, 2022
1 parent cfa55a5 commit 4f9ff2b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/create-plasmo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-plasmo",
"version": "0.55.3-alpha.0",
"version": "0.55.3",
"description": "Create Plasmo Framework Browser Extension",
"main": "dist/index.js",
"bin": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion cli/plasmo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plasmo",
"version": "0.55.3-alpha.0",
"version": "0.55.3",
"description": "The Plasmo Platform CLI",
"main": "dist/index.js",
"types": "dist/type.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/parcel-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plasmohq/parcel-config",
"version": "0.12.0",
"version": "0.12.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/parcel-packager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plasmohq/parcel-packager",
"version": "0.2.1",
"version": "0.3.0",
"description": "Plasmo Parcel Packager for Web Extension Manifest",
"files": [
"dist"
Expand Down
5 changes: 4 additions & 1 deletion packages/parcel-packager/src/get-web-accessible-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ export function appendMv3Wars(
resources: ["__parcel_hmr_proxy__"]
})
}

if (wars.length > 0) {
manifest.web_accessible_resources = wars
manifest.web_accessible_resources = (
manifest.web_accessible_resources || []
).concat(wars)
}
}

0 comments on commit 4f9ff2b

Please sign in to comment.