소스 검색

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

Evan You 1 년 전
부모
커밋
be84f33ab0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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-'),
       },
     },
   }),