We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be7eabd commit d94d8d4Copy full SHA for d94d8d4
packages/compiler-sfc/src/compileTemplate.ts
@@ -219,6 +219,7 @@ function doCompileTemplate({
219
// We need to parse a fresh one. Can't just use `source` here since we need
220
// the AST location info to be relative to the entire SFC.
221
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
222
+ ...compilerOptions,
223
parseMode: 'sfc',
224
onError: e => errors.push(e),
225
})
packages/sfc-playground/src/App.vue
@@ -70,8 +70,8 @@ const sfcOptions: SFCOptions = {
70
template: {
71
isProd: useProdMode.value,
72
compilerOptions: {
73
- isCustomElement: (tag: string) => tag === 'mjx-container'
74
- }
+ isCustomElement: (tag: string) => tag === 'mjx-container',
+ },
75
},
76
}
77
0 commit comments