Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
hooks: {
readPackage(pkg) {
if (pkg.name === 'rolldown-vite') {
if (pkg.bin && pkg.bin.vite) {
pkg.bin['rolldown-vite'] = pkg.bin.vite;
delete pkg.bin.vite;
}
}
return pkg;
},
},
};
13 changes: 13 additions & 0 deletions benchmark.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,19 @@ toolNames.forEach((name) => {
}),
);
break;
case 'rolldown-vite':
buildTools.push(
new BuildTool({
name:
'Vite (Rolldown) ' + require('rolldown-vite/package.json').version,
port: 5173,
startScript: 'start:rolldown-vite',
startedRegex: /ready in (\d+) (s|ms)/,
buildScript: 'build:rolldown-vite',
binFilePath: 'rolldown-vite/bin/vite.js',
}),
);
break;
case 'webpack':
buildTools.push(
new BuildTool({
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@types/node": "^22.15.29",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@vitejs/plugin-react-oxc": "^0.2.1",
"@vitejs/plugin-react-swc": "^3.10.0",
"babel-loader": "^10.0.0",
"cross-env": "^7.0.3",
Expand All @@ -40,6 +41,7 @@
"prettier": "^3.5.3",
"react-refresh": "^0.17.0",
"rolldown": "^1.0.0-beta.10",
"rolldown-vite": "^6.3.18",
"rslog": "^1.2.3",
"swc-loader": "^0.2.6",
"terser-webpack-plugin": "^5.3.14",
Expand All @@ -56,6 +58,8 @@
"build:farm": "farm build",
"start:vite": "vite",
"build:vite": "vite build",
"start:rolldown-vite": "rolldown-vite -c rolldown-vite.config.mjs",
"build:rolldown-vite": "rolldown-vite build -c rolldown-vite.config.mjs",
"start:webpack": "cross-env NODE_ENV=development webpack serve --mode development",
"build:webpack": "cross-env NODE_ENV=production webpack build --mode production",
"start:rspack": "cross-env NODE_ENV=development rspack serve",
Expand Down
Loading