8000 fix(compiler-sfc): enable prefixIdentifiers by default when reparsing… · vuejs/core@48bf8e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48bf8e4

Browse files
authored
fix(compiler-sfc): enable prefixIdentifiers by default when reparsing on consumed AST (#10105)
1 parent 23f9486 commit 48bf8e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-sfc/src/compileTemplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ function doCompileTemplate({
219219
// We need to parse a fresh one. Can't just use `source` here since we need
220220
// the AST location info to be relative to the entire SFC.
221221
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
222+
prefixIdentifiers: true,
222223
...compilerOptions,
223224
parseMode: 'sfc',
224225
onError: e => errors.push(e),

0 commit comments

Comments
 (0)
0