Skip to content

Commit a47fb45

Browse files
authored
workflow(sfc-playground): init custom formatter when selecting new version (#9958)
close #9957
1 parent d94d8d4 commit a47fb45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/sfc-playground/src/App.vue

+6
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ onMounted(() => {
137137
:autoResize="true"
138138
:sfcOptions="sfcOptions"
139139
:clearConsole="false"
140+
:preview-options="{
141+
customCode: {
142+
importCode: `import { initCustomFormatter } from 'vue'`,
143+
useCode: `initCustomFormatter()`
144+
}
145+
}"
140146
/>
141147
</template>
142148

0 commit comments

Comments
 (0)