Skip to content

chore: use rolldown to bundle Vite itself #19925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 20, 2025
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"bcrypt",
"esbuild",
"playwright-chromium",
"rolldown",
"simple-git-hooks",
"workerd"
]
Expand Down
9 changes: 5 additions & 4 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
"homepage": "https://vite.dev",
"funding": "https://github.com/vitejs/vite?sponsor=1",
"scripts": {
"dev": "tsx scripts/dev.ts",
"dev": "premove dist && pnpm build-bundle -w",
"build": "premove dist && pnpm build-bundle && pnpm build-types",
"build-bundle": "rollup --config rollup.config.ts --configPlugin esbuild",
"build-bundle": "rolldown --config rollup.config.ts",
"build-types": "pnpm build-types-temp && pnpm build-types-roll && pnpm build-types-check",
"build-types-temp": "tsc --emitDeclarationOnly --outDir temp -p src/node/tsconfig.build.json",
"build-types-roll": "rollup --config rollup.dts.config.ts --configPlugin esbuild && premove temp",
"build-types-roll": "NODE_OPTIONS='--import tsx' rollup --config rollup.dts.config.ts && premove temp",
"build-types-check": "tsc --project tsconfig.check.json",
"typecheck": "tsc --noEmit && tsc --noEmit -p src/node",
"lint": "eslint --cache --ext .ts src/**",
Expand All @@ -99,6 +99,7 @@
"@ampproject/remapping": "^2.3.0",
"@babel/parser": "^7.27.2",
"@jridgewell/trace-mapping": "^0.3.25",
"@oxc-project/runtime": "^0.70.0",
"@polka/compression": "^1.0.0-next.25",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-commonjs": "^28.0.3",
Expand Down Expand Up @@ -139,8 +140,8 @@
"postcss-load-config": "^6.0.1",
"postcss-modules": "^6.0.1",
"resolve.exports": "^2.0.3",
"rolldown": "^1.0.0-beta.9",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-esbuild": "^6.2.1",
"rollup-plugin-license": "^3.6.0",
"sass": "^1.88.0",
"sass-embedded": "^1.88.0",
Expand Down
Loading