From 8f89be88faaadd9e1025f7dc1430b3854341fb72 Mon Sep 17 00:00:00 2001 From: ifer47 <361301399@qq.com> Date: Fri, 7 Aug 2026 17:20:56 +0800 Subject: [PATCH] chore(playground): default to TypeScript 6 (#15219) fix #15217 --- packages-private/sfc-playground/src/App.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages-private/sfc-playground/src/App.vue b/packages-private/sfc-playground/src/App.vue index 7020211f4d..5a87a1d1d7 100644 --- a/packages-private/sfc-playground/src/App.vue +++ b/packages-private/sfc-playground/src/App.vue @@ -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, -- 2.47.3