diff --git a/package.json b/package.json index 1a3b2566830736..967ecb1a750ef4 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "tsx": "^4.16.0", "typescript": "^5.2.2", "typescript-eslint": "^7.15.0", - "vite": "workspace:*", + "rolldown-vite": "workspace:*", "vitest": "^1.6.0" }, "simple-git-hooks": { @@ -100,7 +100,7 @@ "packageManager": "pnpm@9.4.0", "pnpm": { "overrides": { - "vite": "workspace:*" + "rolldown-vite": "workspace:*" }, "patchedDependencies": { "acorn@8.12.0": "patches/acorn@8.12.0.patch", diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 822566dbda836a..05696d8d555f07 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -58,6 +58,6 @@ "acorn": "^8.12.0", "picocolors": "^1.0.1", "unbuild": "^2.0.0", - "vite": "workspace:*" + "rolldown-vite": "workspace:*" } } diff --git a/packages/vite/package.json b/packages/vite/package.json index cbd1a5a6a51672..00392802633594 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { - "name": "vite", - "version": "5.3.3", + "name": "rolldown-vite", + "version": "0.1.0", "type": "module", "license": "MIT", "author": "Evan You", diff --git a/playground/external/package.json b/playground/external/package.json index 76c3f13cbcc2d5..0f2952562416c0 100644 --- a/playground/external/package.json +++ b/playground/external/package.json @@ -16,7 +16,7 @@ "devDependencies": { "slash3": "npm:slash@^3.0.0", "slash5": "npm:slash@^5.1.0", - "vite": "workspace:*", + "rolldown-vite": "workspace:*", "vue": "^3.4.31", "vue32": "npm:vue@~3.2.0" } diff --git a/playground/legacy/package.json b/playground/legacy/package.json index fb8189605451ac..af818091a79660 100644 --- a/playground/legacy/package.json +++ b/playground/legacy/package.json @@ -15,7 +15,7 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "workspace:*", + "rolldown-vite": "workspace:*", "@vitejs/plugin-legacy": "workspace:*", "express": "^4.19.2", "terser": "^5.31.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c96a403c4d0266..a191c59f972ed5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: - vite: workspace:* + rolldown-vite: workspace:* patchedDependencies: acorn@8.12.0: @@ -115,6 +115,9 @@ importers: rimraf: specifier: ^5.0.7 version: 5.0.7 + rolldown-vite: + specifier: workspace:* + version: link:packages/vite rollup: specifier: ^4.13.0 version: 4.13.0 @@ -136,12 +139,9 @@ importers: typescript-eslint: specifier: ^7.15.0 version: 7.15.0(eslint@9.6.0)(typescript@5.2.2) - vite: - specifier: workspace:* - version: link:packages/vite vitest: specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.9) + version: 1.6.0(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) docs: devDependencies: @@ -156,7 +156,7 @@ importers: version: 4.2.2 vitepress: specifier: 1.2.3 - version: 1.2.3(@algolia/client-search@4.20.0)(axios@1.7.2)(postcss@8.4.39)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.2.2) + version: 1.2.3(@algolia/client-search@4.20.0)(@types/node@20.14.9)(axios@1.7.2)(less@4.2.0)(lightningcss@1.25.1)(postcss@8.4.39)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1(postcss@8.4.39))(terser@5.31.1)(typescript@5.2.2) vue: specifier: ^3.4.31 version: 3.4.31(typescript@5.2.2) @@ -218,12 +218,12 @@ importers: picocolors: specifier: ^1.0.1 version: 1.0.1 + rolldown-vite: + specifier: workspace:* + version: link:../vite unbuild: specifier: ^2.0.0 version: 2.0.0(sass@1.77.6)(typescript@5.2.2) - vite: - specifier: workspace:* - version: link:../vite packages/vite: dependencies: @@ -685,15 +685,15 @@ importers: specifier: file:./dep-that-requires version: file:playground/external/dep-that-requires(typescript@5.2.2) devDependencies: + rolldown-vite: + specifier: workspace:* + version: link:../../packages/vite slash3: specifier: npm:slash@^3.0.0 version: slash@3.0.0 slash5: specifier: npm:slash@^5.1.0 version: slash@5.1.0 - vite: - specifier: workspace:* - version: link:../../packages/vite vue: specifier: ^3.4.31 version: 3.4.31(typescript@5.2.2) @@ -784,12 +784,12 @@ importers: express: specifier: ^4.19.2 version: 4.19.2 + rolldown-vite: + specifier: workspace:* + version: link:../../packages/vite terser: specifier: ^5.31.1 version: 5.31.1 - vite: - specifier: workspace:* - version: link:../../packages/vite playground/lib: devDependencies: @@ -3372,7 +3372,7 @@ packages: resolution: {integrity: sha512-LOjm7XeIimLBZyzinBQ6OSm3UBCNVCpLkxGC0oWmm2YPzVZoxMsdvNVimLTBzpAnR9hl/yn1SHGuRfe6/Td9rQ==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: - vite: workspace:* + vite: ^5.0.0 vue: ^3.2.25 '@vitejs/release-scripts@1.3.1': @@ -6707,6 +6707,34 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true + vite@5.3.4: + resolution: {integrity: sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + vitepress@1.2.3: resolution: {integrity: sha512-GvEsrEeNLiDE1+fuwDAYJCYLNZDAna+EtnXlPajhv/MYeTjbNK6Bvyg6NoTdO1sbwuQJ0vuJR99bOlH53bo6lg==} hasBin: true @@ -8738,9 +8766,9 @@ snapshots: '@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@file:playground/optimize-deps/longfilename': {} - '@vitejs/plugin-vue@5.0.5(vite@packages+vite)(vue@3.4.31(typescript@5.2.2))': + '@vitejs/plugin-vue@5.0.5(vite@5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1(postcss@8.4.39))(terser@5.31.1))(vue@3.4.31(typescript@5.2.2))': dependencies: - vite: link:packages/vite + vite: 5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) vue: 3.4.31(typescript@5.2.2) '@vitejs/release-scripts@1.3.1': @@ -12400,24 +12428,46 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-node@1.6.0: + vite-node@1.6.0(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: link:packages/vite + vite: 5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss - supports-color + - terser + + vite@5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.39 + rollup: 4.13.0 + optionalDependencies: + '@types/node': 20.14.9 + fsevents: 2.3.3 + less: 4.2.0 + lightningcss: 1.25.1 + sass: 1.77.6 + stylus: 0.63.0 + sugarss: 4.0.1(postcss@8.4.39) + terser: 5.31.1 - vitepress@1.2.3(@algolia/client-search@4.20.0)(axios@1.7.2)(postcss@8.4.39)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.2.2): + vitepress@1.2.3(@algolia/client-search@4.20.0)(@types/node@20.14.9)(axios@1.7.2)(less@4.2.0)(lightningcss@1.25.1)(postcss@8.4.39)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1(postcss@8.4.39))(terser@5.31.1)(typescript@5.2.2): dependencies: '@docsearch/css': 3.6.0 '@docsearch/js': 3.6.0(@algolia/client-search@4.20.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@shikijs/core': 1.6.3 '@shikijs/transformers': 1.6.3 '@types/markdown-it': 14.1.1 - '@vitejs/plugin-vue': 5.0.5(vite@packages+vite)(vue@3.4.31(typescript@5.2.2)) + '@vitejs/plugin-vue': 5.0.5(vite@5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1(postcss@8.4.39))(terser@5.31.1))(vue@3.4.31(typescript@5.2.2)) '@vue/devtools-api': 7.2.1(vue@3.4.31(typescript@5.2.2)) '@vue/shared': 3.4.27 '@vueuse/core': 10.10.0(vue@3.4.31(typescript@5.2.2)) @@ -12426,12 +12476,13 @@ snapshots: mark.js: 8.11.1 minisearch: 6.3.0 shiki: 1.6.3 - vite: link:packages/vite + vite: 5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) vue: 3.4.31(typescript@5.2.2) optionalDependencies: postcss: 8.4.39 transitivePeerDependencies: - '@algolia/client-search' + - '@types/node' - '@types/react' - '@vue/composition-api' - async-validator @@ -12441,16 +12492,22 @@ snapshots: - fuse.js - idb-keyval - jwt-decode + - less + - lightningcss - nprogress - qrcode - react - react-dom + - sass - search-insights - sortablejs + - stylus + - sugarss + - terser - typescript - universal-cookie - vitest@1.6.0(@types/node@20.14.9): + vitest@1.6.0(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -12469,13 +12526,19 @@ snapshots: strip-literal: 2.1.0 tinybench: 2.5.1 tinypool: 0.8.4 - vite: link:packages/vite - vite-node: 1.6.0 + vite: 5.3.4(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) + vite-node: 1.6.0(@types/node@20.14.9)(less@4.2.0)(lightningcss@1.25.1)(sass@1.77.6)(stylus@0.63.0)(sugarss@4.0.1)(terser@5.31.1) why-is-node-running: 2.2.2 optionalDependencies: '@types/node': 20.14.9 transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss - supports-color + - terser void-elements@3.1.0: {}