From: SerKo <44749100+serkodev@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:54:47 +0000 (+0800) Subject: workflow(sfc-playground): init custom formatter when selecting new version (#9958) X-Git-Tag: v3.4.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47fb45c507f70699154d0901d80a852ac3dd7aa;p=thirdparty%2Fvuejs%2Fcore.git workflow(sfc-playground): init custom formatter when selecting new version (#9958) close #9957 --- diff --git a/packages/sfc-playground/src/App.vue b/packages/sfc-playground/src/App.vue index e8aeeeaef5..200ac550d8 100644 --- a/packages/sfc-playground/src/App.vue +++ b/packages/sfc-playground/src/App.vue @@ -137,6 +137,12 @@ onMounted(() => { :autoResize="true" :sfcOptions="sfcOptions" :clearConsole="false" + :preview-options="{ + customCode: { + importCode: `import { initCustomFormatter } from 'vue'`, + useCode: `initCustomFormatter()` + } + }" />