Skip to content

Commit 418c15d

Browse files
authored
perf: optimize build process for parallel execution (#1801)
1 parent 6b8010f commit 418c15d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,9 @@
274274
}
275275
},
276276
"scripts": {
277-
"build": "npm run build:webview && npm run vsix",
277+
"build": "npm run vsix",
278278
"build:webview": "cd webview-ui && npm run build",
279+
"build:esbuild": "node esbuild.js --production",
279280
"compile": "tsc -p . --outDir out && node esbuild.js",
280281
"install:all": "npm install npm-run-all && npm run install:_all",
281282
"install:_all": "npm-run-all -p install-*",
@@ -293,7 +294,7 @@
293294
"check-types:webview": "cd webview-ui && npm run check-types",
294295
"check-types:e2e": "cd e2e && npm run check-types",
295296
"check-types:benchmark": "cd benchmark && npm run check-types",
296-
"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
297+
"package": "npm-run-all -p build:webview build:esbuild check-types lint",
297298
"pretest": "npm run compile",
298299
"dev": "cd webview-ui && npm run dev",
299300
"test": "npm-run-all -p test:*",

webview-ui/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"check-types": "tsc",
1010
"test": "jest",
1111
"dev": "vite",
12-
"build": "tsc -b && vite build",
12+
"tsc": "tsc -b",
13+
"vite-build": "vite build",
14+
"build": "npm-run-all -p tsc vite-build",
1315
"preview": "vite preview",
1416
"storybook": "storybook dev -p 6006",
1517
"build-storybook": "storybook build",

webview-ui/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default defineConfig({
1414
},
1515
build: {
1616
outDir: "build",
17+
reportCompressedSize: false,
1718
rollupOptions: {
1819
output: {
1920
entryFileNames: `assets/[name].js`,

0 commit comments

Comments
 (0)