From: Evan You Date: Thu, 8 Aug 2024 08:49:16 +0000 (+0800) Subject: chore(sfc-playground): default isCustomElement for sfc playground X-Git-Tag: v3.5.0-beta.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be84f33ab0748a25dccede3588620efa5024f6ee;p=thirdparty%2Fvuejs%2Fcore.git chore(sfc-playground): default isCustomElement for sfc playground --- diff --git a/packages/sfc-playground/src/App.vue b/packages/sfc-playground/src/App.vue index 7501b200ce..7cbe573f6e 100644 --- a/packages/sfc-playground/src/App.vue +++ b/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-'), }, }, }),