mirror of https://github.com/vuejs/core.git
feat(deprecated): remove deprecated parseExpressions option (#11597)
This commit is contained in:
parent
d0f882d5bb
commit
4e7d5db4d2
|
@ -29,11 +29,6 @@ export interface SFCParseOptions {
|
||||||
ignoreEmpty?: boolean
|
ignoreEmpty?: boolean
|
||||||
compiler?: TemplateCompiler
|
compiler?: TemplateCompiler
|
||||||
templateParseOptions?: ParserOptions
|
templateParseOptions?: ParserOptions
|
||||||
/**
|
|
||||||
* TODO remove in 3.5
|
|
||||||
* @deprecated use `templateParseOptions: { prefixIdentifiers: false }` instead
|
|
||||||
*/
|
|
||||||
parseExpressions?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SFCBlock {
|
export interface SFCBlock {
|
||||||
|
@ -138,8 +133,7 @@ export function parse(
|
||||||
pad = false,
|
pad = false,
|
||||||
ignoreEmpty = true,
|
ignoreEmpty = true,
|
||||||
compiler = CompilerDOM,
|
compiler = CompilerDOM,
|
||||||
templateParseOptions = {},
|
templateParseOptions = { prefixIdentifiers: true },
|
||||||
parseExpressions = true,
|
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
const descriptor: SFCDescriptor = {
|
const descriptor: SFCDescriptor = {
|
||||||
|
@ -158,7 +152,6 @@ export function parse(
|
||||||
const errors: (CompilerError | SyntaxError)[] = []
|
const errors: (CompilerError | SyntaxError)[] = []
|
||||||
const ast = compiler.parse(source, {
|
const ast = compiler.parse(source, {
|
||||||
parseMode: 'sfc',
|
parseMode: 'sfc',
|
||||||
prefixIdentifiers: parseExpressions,
|
|
||||||
...templateParseOptions,
|
...templateParseOptions,
|
||||||
onError: e => {
|
onError: e => {
|
||||||
errors.push(e)
|
errors.push(e)
|
||||||
|
|
Loading…
Reference in New Issue