]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
feat: use vite 8 beta instead of rolldown-vite package (#888)
authorAlexander Lichter <github@lichter.io>
Wed, 7 Jan 2026 01:35:15 +0000 (02:35 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Jan 2026 01:35:15 +0000 (10:35 +0900)
index.ts
locales/en-US.json
locales/fr-FR.json
locales/tr-TR.json
locales/zh-Hans.json
locales/zh-Hant.json
utils/getLanguage.ts

index a006f966fc5385a9f1612a93453fea51bbb565b5..2b91819bd3d221e1a13dfdde0f855b965e6e082b 100755 (executable)
--- a/index.ts
+++ b/index.ts
@@ -44,7 +44,7 @@ const FEATURE_FLAGS = [
   'prettier',
   'eslint-with-prettier',
   'oxlint',
-  'rolldown-vite',
+  'vite-beta',
 ] as const
 
 const FEATURE_OPTIONS = [
@@ -87,8 +87,8 @@ const EXPERIMENTAL_FEATURE_OPTIONS = [
     label: language.needsOxlint.message,
   },
   {
-    value: 'rolldown-vite',
-    label: language.needsRolldownVite.message,
+    value: 'vite-beta',
+    label: language.needsViteBeta.message,
   },
 ] as const
 
@@ -199,8 +199,8 @@ Available feature flags:
     Add Prettier for code formatting.
   --oxlint
     Add Oxlint for code quality and formatting.
-  --rolldown-vite
-    Use Rolldown Vite instead of Vite for building the project.
+  --vite-beta
+    Use Vite 8 Beta instead of Vite for building the project.
 
 Unstable feature flags:
   --tests, --with-tests
@@ -378,7 +378,8 @@ async function init() {
   const needsPrettier =
     argv.prettier || argv['eslint-with-prettier'] || features.includes('prettier')
   const needsOxlint = experimentFeatures.includes('oxlint') || argv['oxlint']
-  const needsRolldownVite = experimentFeatures.includes('rolldown-vite') || argv['rolldown-vite']
+  const needsViteBeta =
+    experimentFeatures.includes('vite-beta') || argv['vite-beta'] || argv['rolldown-vite'] // keep `rolldown-vite` for backward compatibility
 
   const { e2eFramework } = result
   const needsCypress = argv.cypress || argv.tests || e2eFramework === 'cypress'
@@ -409,8 +410,8 @@ async function init() {
   const replaceVite = () => {
     const content = fs.readFileSync(path.resolve(root, 'package.json'), 'utf-8')
     const json = JSON.parse(content)
-    // Replace `vite` with `rolldown-vite` if the feature is enabled
-    json.devDependencies.vite = 'npm:rolldown-vite@latest'
+    // Replace `vite` version with beta if the feature is enabled
+    json.devDependencies.vite = 'beta'
     fs.writeFileSync(path.resolve(root, 'package.json'), JSON.stringify(json, null, 2))
   }
   // Render base template
@@ -546,8 +547,8 @@ async function init() {
     // TODO: add oxfmt option in the next PR
   }
 
-  // use rolldown-vite if the feature is enabled
-  if (needsRolldownVite) {
+  // use Vite 8 Beta if the feature is enabled
+  if (needsViteBeta) {
     replaceVite()
   }
 
index 10a91068f5ed182b795a3197ca0dcbff76380bc7..5cbc4ccf0bb9c426a1db64e9f43cb5c2456f0cad 100644 (file)
@@ -69,8 +69,8 @@
     "message": "Select experimental features to include in your project:",
     "hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
   },
-  "needsRolldownVite": {
-    "message": "rolldown-vite (experimental)"
+  "needsViteBeta": {
+    "message": "Vite 8 (beta)"
   },
   "needsBareboneTemplates": {
     "message": "Skip all example code and start with a blank Vue project?"
index 1e2ff6895404fbed059612cd8f0a5ffab9de543e..fd28a667981d8d6eae8fddc8d5c09cf882f98f23 100644 (file)
@@ -69,8 +69,8 @@
     "message": "Sélectionnez les fonctionnalités expérimentales à inclure\u00a0:",
     "hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
   },
-  "needsRolldownVite": {
-    "message": "rolldown-vite (expérimental)"
+  "needsViteBeta": {
+    "message": "Vite 8 (beta)"
   },
   "needsBareboneTemplates": {
     "message": "Ignorer tout le code d'exemple et commencer avec un projet Vue vierge\u00a0?"
index 550cdcedd99d57c3185338a1a0f5c1ae074a7551..0d618674e3d311af3a4a8a6f4637027fcd254e15 100644 (file)
@@ -69,8 +69,8 @@
     "message": "Dahil edilecek deneysel özellikleri seçin:",
     "hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
   },
-  "needsRolldownVite": {
-    "message": "rolldown-vite (deneysel)"
+  "needsViteBeta": {
+    "message": "Vite 8 (beta)"
   },
   "needsBareboneTemplates": {
     "message": "Tüm örnek kodları atlayıp boş bir Vue projesi ile başlansın mı?"
index 3f46cf5d5f48542e00bd12df8d8a808ecdd4b087..9498780d2fc48f6903ab1c0a5b1235a1fed32341 100644 (file)
@@ -69,8 +69,8 @@
     "message": "选择要包含的试验特性:",
     "hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
   },
-  "needsRolldownVite": {
-    "message": "rolldown-vite(试验阶段)"
+  "needsViteBeta": {
+    "message": "Vite 8(测试版)"
   },
   "needsBareboneTemplates": {
     "message": "跳过所有示例代码,创建一个空白的 Vue 项目?"
index 98cc63b2d353e868094d3d3fc53eeaa3541f35d6..e44bb5f0a37a58fd886d0a236f8af400265e181b 100644 (file)
@@ -69,8 +69,8 @@
     "message": "請選擇要包含的試驗特性:",
     "hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
   },
-  "needsRolldownVite": {
-    "message": "rolldown-vite(試驗性功能)"
+  "needsViteBeta": {
+    "message": "Vite 8(測試版)"
   },
   "needsBareboneTemplates": {
     "message": "跳過所有範例程式碼,建立一個空白的 Vue 專案?"
index 7144841a232767b9f831b1535607ae0afdedcbf8..cdcf3891f8cbf8e70b9965d0eff050c51a5240bf 100644 (file)
@@ -39,7 +39,7 @@ interface Language {
   needsExperimental: LanguageItem
   needsExperimentalFeatures: LanguageItem
   needsOxlint: LanguageItem
-  needsRolldownVite: LanguageItem
+  needsViteBeta: LanguageItem
   needsBareboneTemplates: LanguageItem
   errors: {
     operationCancelled: string