Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
browser extension target out dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Mar 4, 2022
1 parent 7fb7af6 commit 8a8b416
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.vscode-test/**
test/**
src/**
browser/**
visx/**
node_modules/**
**/*.map
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"vscode": "^1.55.0"
},
"main": "./out/main.js",
"browser": "./dist/web/extension.js",
"browser": "./out/browser.js",
"activationEvents": [
"onLanguage:quarto",
"workspaceContains:**/_quarto.{yml,yaml}"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.webpack.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"outDir": "dist",
"outDir": "out",
"lib": ["es6", "WebWorker"],
"sourceMap": true,
"rootDir": "web",
"rootDir": "browser",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const webExtensionConfig = {
mode: "none", // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
target: "webworker", // extensions run in a webworker context
entry: {
extension: "./web/extension.ts", // source of the web extension main file
extension: "./browser/extension.ts", // source of the web extension main file
},
output: {
filename: "[name].js",
path: path.join(__dirname, "./dist/web"),
filename: "browser.js",
path: path.join(__dirname, "./out"),
libraryTarget: "commonjs",
devtoolModuleFilenameTemplate: "../../[resource-path]",
},
Expand Down

0 comments on commit 8a8b416

Please sign in to comment.