Skip to content

Commit 6db2515

Browse files
authored
build: use esbuild to speedup building vite package (#17299)
1 parent a826a08 commit 6db2515

File tree

10 files changed

+258
-239
lines changed

10 files changed

+258
-239
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^9.4.0",
44-
"@rollup/plugin-typescript": "^11.1.6",
4544
"@types/babel__core": "^7.20.5",
4645
"@types/babel__preset-env": "^7.9.6",
4746
"@types/convert-source-map": "^2.0.3",
@@ -74,6 +73,7 @@
7473
"prettier": "3.3.1",
7574
"rimraf": "^5.0.7",
7675
"rollup": "^4.13.0",
76+
"rollup-plugin-esbuild": "^6.1.1",
7777
"simple-git-hooks": "^2.11.1",
7878
"tslib": "^2.6.3",
7979
"tsx": "^4.15.1",

packages/vite/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
"homepage": "https://vitejs.dev",
7272
"funding": "https://github.com/vitejs/vite?sponsor=1",
7373
"scripts": {
74-
"dev": "rimraf dist && pnpm run build-bundle -w",
74+
"dev": "tsx scripts/dev.ts",
7575
"build": "rimraf dist && run-s build-bundle build-types",
76-
"build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
76+
"build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
7777
"build-types": "run-s build-types-temp build-types-roll build-types-check",
7878
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node",
79-
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
79+
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && rimraf temp",
8080
"build-types-check": "tsc --project tsconfig.check.json",
8181
"typecheck": "tsc --noEmit",
8282
"lint": "eslint --cache --ext .ts src/**",
@@ -102,7 +102,6 @@
102102
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
103103
"@rollup/plugin-json": "^6.1.0",
104104
"@rollup/plugin-node-resolve": "15.2.3",
105-
"@rollup/plugin-typescript": "^11.1.6",
106105
"@rollup/pluginutils": "^5.1.0",
107106
"@types/escape-html": "^1.0.4",
108107
"@types/pnpapi": "^0.0.5",

0 commit comments

Comments
 (0)