]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(sfc-playground): default isCustomElement for sfc playground
authorEvan You <evan@vuejs.org>
Thu, 8 Aug 2024 08:49:16 +0000 (16:49 +0800)
committerEvan You <evan@vuejs.org>
Thu, 8 Aug 2024 08:49:16 +0000 (16:49 +0800)
packages/sfc-playground/src/App.vue

index 7501b200ce839fbec7494cab3d5d97afa2ab814f..7cbe573f6e2968b2767a2c48c618be61c3e32945 100644 (file)
@@ -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-'),
       },
     },
   }),