feat(deprecated): remove deprecated parseExpressions option (#11597)

This commit is contained in:
edison 2024-08-13 22:04:48 +08:00 committed by GitHub
parent d0f882d5bb
commit 4e7d5db4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -29,11 +29,6 @@ export interface SFCParseOptions {
ignoreEmpty?: boolean
compiler?: TemplateCompiler
templateParseOptions?: ParserOptions
/**
* TODO remove in 3.5
* @deprecated use `templateParseOptions: { prefixIdentifiers: false }` instead
*/
parseExpressions?: boolean
}
export interface SFCBlock {
@ -138,8 +133,7 @@ export function parse(
pad = false,
ignoreEmpty = true,
compiler = CompilerDOM,
templateParseOptions = {},
parseExpressions = true,
templateParseOptions = { prefixIdentifiers: true },
} = options
const descriptor: SFCDescriptor = {
@ -158,7 +152,6 @@ export function parse(
const errors: (CompilerError | SyntaxError)[] = []
const ast = compiler.parse(source, {
parseMode: 'sfc',
prefixIdentifiers: parseExpressions,
...templateParseOptions,
onError: e => {
errors.push(e)