Explorar o código

chore(sfc-playground): default isCustomElement for sfc playground

Evan You hai 1 ano
pai
achega
be84f33ab0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/sfc-playground/src/App.vue

+ 2 - 1
packages/sfc-playground/src/App.vue

@@ -54,7 +54,8 @@ const sfcOptions = computed(
     template: {
       isProd: productionMode.value,
       compilerOptions: {
-        isCustomElement: (tag: string) => tag === 'mjx-container',
+        isCustomElement: (tag: string) =>
+          tag === 'mjx-container' || tag.startsWith('custom-'),
       },
     },
   }),