diff --git a/packages/sfc-playground/src/App.vue b/packages/sfc-playground/src/App.vue index e8aeeeaef56..cadd39f4baa 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()`, + }, + }" />