Skip to content

Commit

Permalink
VSC: Add "browser" field to package.json
Browse files Browse the repository at this point in the history
This is to trick the Marketplace into thinking that the extension
supports VS Code on the Web. Currently the stable version doesn't, but
it's being tested on the pre-release version. However the Marketplace
always check the package.json of the stable version and then fails to
install, even if you tell it to install the pre-release version.

Also tells parcel to ignore this field (otherwise it complains it can't
build two bundle targets with the same target filename).
  • Loading branch information
stkb committed Feb 21, 2022
1 parent d8d99fc commit b5414c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"*"
],
"main": "./dist/Extension.js",
"browser": "./dist/Extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": true
Expand Down Expand Up @@ -121,5 +122,8 @@
"fast-diff": "^1.2.0",
"json5": "^2.2.0"
},
"source": "src/Extension.ts"
"source": "src/Extension.ts",
"targets": {
"browser": false
}
}

0 comments on commit b5414c5

Please sign in to comment.