fix(compiler-sfc): enable prefixIdentifiers by default when reparsing on consumed AST (#10105)
This commit is contained in:
parent
23f94869fd
commit
48bf8e4c70
|
@ -219,6 +219,7 @@ function doCompileTemplate({
|
||||||
// We need to parse a fresh one. Can't just use `source` here since we need
|
// 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.
|
// the AST location info to be relative to the entire SFC.
|
||||||
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
|
const newAST = (ssr ? CompilerDOM : compiler).parse(inAST.source, {
|
||||||
|
prefixIdentifiers: true,
|
||||||
...compilerOptions,
|
...compilerOptions,
|
||||||
parseMode: 'sfc',
|
parseMode: 'sfc',
|
||||||
onError: e => errors.push(e),
|
onError: e => errors.push(e),
|
||||||
|
|
Loading…
Reference in New Issue