Skip to content

Commit b6941eb

Browse files
committed
Use esbuild instead of webpack
1 parent d24927c commit b6941eb

File tree

5 files changed

+150
-724
lines changed

5 files changed

+150
-724
lines changed

client/webpack.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@
144144
}
145145
},
146146
"scripts": {
147-
"vscode:prepublish": "yarn webpack",
148-
"webpack": "yarn clean && webpack --mode production --config ./client/webpack.config.js && webpack --mode production --config ./server/webpack.config.js",
149-
"webpack:dev": "yarn clean && webpack --mode none --config ./client/webpack.config.js && webpack --mode none --config ./server/webpack.config.js",
147+
"vscode:prepublish": "yarn build",
148+
"build": "yarn clean && yarn buildClient && yarn buildServer",
149+
"buildClient": "esbuild extension=./client/src/extension.ts --sourcemap --bundle --external:vscode --platform=node --outdir=./client/out/",
150+
"buildServer": "esbuild server=./server/src/server.ts --sourcemap --bundle --external:vscode --platform=node --outdir=./server/out/",
150151
"compile": "tsc -b",
151152
"compile:client": "tsc -b ./client/tsconfig.json",
152153
"compile:server": "tsc -b ./server/tsconfig.json",
@@ -160,6 +161,7 @@
160161
"@types/node": "14.x",
161162
"@typescript-eslint/eslint-plugin": "^5.33.0",
162163
"@typescript-eslint/parser": "^5.21.0",
164+
"esbuild": "^0.17.12",
163165
"eslint": "^8.0.1",
164166
"eslint-config-prettier": "^8.5.0",
165167
"eslint-config-standard-with-typescript": "^22.0.0",
@@ -171,8 +173,6 @@
171173
"prettier": "^2.7.1",
172174
"rimraf": "^3.0.2",
173175
"ts-loader": "^9.3.1",
174-
"typescript": "*",
175-
"webpack": "^5.74.0",
176-
"webpack-cli": "^4.10.0"
176+
"typescript": "*"
177177
}
178178
}

server/webpack.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

shared.webpack.config.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)