]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(playground): default to TypeScript 6 (#15219) main
authorifer47 <361301399@qq.com>
Fri, 7 Aug 2026 09:20:56 +0000 (17:20 +0800)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2026 09:20:56 +0000 (17:20 +0800)
fix #15217

packages-private/sfc-playground/src/App.vue

index 7020211f4dbdf87c01bf429e408ddd126c527d38..5a87a1d1d78c5a4d2c3ac3f5f0cd06f64c18750a 100644 (file)
@@ -14,6 +14,8 @@ setVH()
 
 const useSSRMode = ref(false)
 
+const DEFAULT_TYPESCRIPT_VERSION = '6.0.3'
+
 const AUTO_SAVE_STORAGE_KEY = 'vue-sfc-playground-auto-save'
 const initAutoSave: boolean = JSON.parse(
   localStorage.getItem(AUTO_SAVE_STORAGE_KEY) ?? 'true',
@@ -69,6 +71,7 @@ const store = useStore(
   {
     builtinImportMap: importMap,
     vueVersion,
+    typescriptVersion: ref(DEFAULT_TYPESCRIPT_VERSION),
     sfcOptions,
   },
   hash,