Skip to content

Commit 7753b02

Browse files
authored
chore: use rolldown to bundle Vite itself (vitejs#19925)
1 parent 1fe07d3 commit 7753b02

File tree

11 files changed

+402
-291
lines changed

11 files changed

+402
-291
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
"bcrypt",
138138
"esbuild",
139139
"playwright-chromium",
140+
"rolldown",
140141
"simple-git-hooks",
141142
"workerd"
142143
]

packages/vite/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
"homepage": "https://vite.dev",
7272
"funding": "https://github.com/vitejs/vite?sponsor=1",
7373
"scripts": {
74-
"dev": "tsx scripts/dev.ts",
74+
"dev": "premove dist && pnpm build-bundle -w",
7575
"build": "premove dist && pnpm build-bundle && pnpm build-types",
76-
"build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
76+
"build-bundle": "rolldown --config rollup.config.ts",
7777
"build-types": "pnpm build-types-temp && pnpm build-types-roll && pnpm build-types-check",
7878
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node/tsconfig.build.json",
79-
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && premove temp",
79+
"build-types-roll": "NODE_OPTIONS='--import tsx' rollup --config rollup.dts.config.ts && premove temp",
8080
"build-types-check": "tsc --project tsconfig.check.json",
8181
"typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
8282
"lint": "eslint --cache --ext .ts src/**",
@@ -99,6 +99,7 @@
9999
"@ampproject/remapping": "^2.3.0",
100100
"@babel/parser": "^7.27.2",
101101
"@jridgewell/trace-mapping": "^0.3.25",
102+
"@oxc-project/runtime": "^0.70.0",
102103
"@polka/compression": "^1.0.0-next.25",
103104
"@rollup/plugin-alias": "^5.1.1",
104105
"@rollup/plugin-commonjs": "^28.0.3",
@@ -139,8 +140,8 @@
139140
"postcss-load-config": "^6.0.1",
140141
"postcss-modules": "^6.0.1",
141142
"resolve.exports": "^2.0.3",
143+
"rolldown": "^1.0.0-beta.9",
142144
"rollup-plugin-dts": "^6.2.1",
143-
"rollup-plugin-esbuild": "^6.2.1",
144145
"rollup-plugin-license": "^3.6.0",
145146
"sass": "^1.88.0",
146147
"sass-embedded": "^1.88.0",

0 commit comments

Comments
 (0)