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

This commit is contained in:
Evan You 2024-08-08 16:49:16 +08:00
parent a07e7bf553
commit be84f33ab0
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 1 deletions

View 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-'),
},
},
}),