Don't enable class features by default in estree (#12867)
* Don't enable class features by default in `estree` * Flow * Reduce breakage
This commit is contained in:
@@ -31,7 +31,10 @@ export function normalizeBabelParseConfig(options) {
|
||||
allowReturnOutsideFunction: true,
|
||||
allowSuperOutsideMethod: true,
|
||||
...options.babelOptions.parserOpts,
|
||||
plugins: ["estree", ...(options.babelOptions.parserOpts?.plugins ?? [])],
|
||||
plugins: [
|
||||
["estree", { classFeatures: false }],
|
||||
...(options.babelOptions.parserOpts?.plugins ?? []),
|
||||
],
|
||||
ranges: true,
|
||||
tokens: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user