Skip to content

Commit

Permalink
Update compileTemplate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Jan 14, 2024
1 parent 19212c4 commit e5f0b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/compileTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ function doCompileTemplate({
// the AST location info to be relative to the entire SFC.
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
prefixIdentifiers: true,
parseMode: 'sfc',
...compilerOptions,
parseMode: 'sfc',
onError: e => errors.push(e),
})
const template = newAST.children.find(
Expand Down

0 comments on commit e5f0b08

Please sign in to comment.