Skip to content

Commit

Permalink
fix(compiler-sfc): enable prefixIdentifiers by default when reparsing…
Browse files Browse the repository at this point in the history
… on consumed AST (vuejs#10105)
  • Loading branch information
sxzz authored Jan 14, 2024
1 parent 23f9486 commit 48bf8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/compileTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ function doCompileTemplate({
// 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, {
prefixIdentifiers: true,
...compilerOptions,
parseMode: 'sfc',
onError: e => errors.push(e),
Expand Down

0 comments on commit 48bf8e4

Please sign in to comment.