Bump babel to 7.14.x for typescript 4.3 support (#36465)

* chore(babel): bump packages to 7.14.x

* chore(babel): remove plugin-proposal-class-properties and plugin-proposal-private-methods

these plugins are now enabled by default in preset-env
This commit is contained in:
Jack Westbrook
2021-07-07 10:43:17 +02:00
committed by GitHub
parent 7538739881
commit d1da97b176
3 changed files with 841 additions and 37 deletions

View File

@ -2,7 +2,6 @@ module.exports = function getBabelConfig(options = {}) {
return {
cacheDirectory: true,
babelrc: false,
// Note: order is top-to-bottom and/or left-to-right
// Note: order is bottom-to-top and/or right-to-left
presets: [
[
@ -36,8 +35,6 @@ module.exports = function getBabelConfig(options = {}) {
allowDeclareFields: true,
},
],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-transform-react-constant-elements',
'@babel/plugin-proposal-nullish-coalescing-operator',