-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle extension with webpack for faster startup
- Loading branch information
Showing
7 changed files
with
2,367 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
out | ||
dist | ||
node_modules | ||
.vscode-test/ | ||
*.vsix |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
out/test/** | ||
out/**/*.map | ||
images/** | ||
out/** | ||
node_modules/** | ||
src/** | ||
.gitignore | ||
tsconfig.json | ||
azure-pipelines.yml | ||
images/** | ||
tsconfig.json | ||
webpack.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const path = require("path"); | ||
|
||
/**@type {import('webpack').Configuration}*/ | ||
const config = { | ||
target: "node", | ||
node: { | ||
__dirname: false, // leave the __dirname-behaviour intact | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"], | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
exclude: /node_modules/, | ||
use: [ | ||
{ | ||
loader: "ts-loader", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
externals: { | ||
vscode: "commonjs vscode", | ||
}, | ||
entry: "./src/main.ts", | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "main.js", | ||
libraryTarget: "commonjs2", | ||
devtoolModuleFilenameTemplate: "../[resource-path]", | ||
}, | ||
devtool: "source-map", | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.