We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e65ea4 commit 678378aCopy full SHA for 678378a
packages/compiler-sfc/src/compileTemplate.ts
@@ -218,7 +218,7 @@ function doCompileTemplate({
218
// input AST has codegenNode - it has already been transformed and cannot
219
// be reused. We need to parse a fresh one. Can't just use `source` here
220
// since we need the AST location info to be relative to the entire SFC.
221
- const newAST = compiler.parse(inAST.source, {
+ const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
222
parseMode: 'sfc',
223
onError: e => errors.push(e)
224
})
0 commit comments