]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-sfc): enable prefixIdentifiers by default when reparsing on consumed...
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Sun, 14 Jan 2024 01:36:04 +0000 (09:36 +0800)
committerGitHub <noreply@github.com>
Sun, 14 Jan 2024 01:36:04 +0000 (09:36 +0800)
packages/compiler-sfc/src/compileTemplate.ts

index 5b7fe268366a59d474c2feef6b13178a72ce15b4..2d5ffdad7d8d4d78ce19fc446e49c172244afeae 100644 (file)
@@ -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),