mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 02:29:33 +08:00
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:
@ -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',
|
||||
|
Reference in New Issue
Block a user