Ver código fonte

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

Evan You 1 ano atrás
pai
commit
be84f33ab0
1 arquivos alterados com 2 adições e 1 exclusões
  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-'),
       },
     },
   }),