From: ifer47 <361301399@qq.com> Date: Fri, 7 Aug 2026 09:20:56 +0000 (+0800) Subject: chore(playground): default to TypeScript 6 (#15219) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Fvuejs%2Fcore.git chore(playground): default to TypeScript 6 (#15219) fix #15217 --- diff --git a/packages-private/sfc-playground/src/App.vue b/packages-private/sfc-playground/src/App.vue index 7020211f4..5a87a1d1d 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,