fixes hydration error for custom elements
// We need to parse a fresh one. Can't just use `source` here since we need
// the AST location info to be relative to the entire SFC.
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
+ ...compilerOptions,
parseMode: 'sfc',
onError: e => errors.push(e),
})
template: {
isProd: useProdMode.value,
compilerOptions: {
- isCustomElement: (tag: string) => tag === 'mjx-container'
- }
+ isCustomElement: (tag: string) => tag === 'mjx-container',
+ },
},
}