mirror of
https://github.com/grafana/grafana.git
synced 2024-12-27 09:21:35 -06:00
Babel: @babel/plugin-transform-react-constant-elements to babel config to optimize react performance (#32629)
This commit is contained in:
parent
6087980de0
commit
532b8d4bc2
@ -39,8 +39,7 @@ module.exports = function getBabelConfig(options = {}) {
|
||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||||
['@babel/plugin-proposal-private-methods', { loose: true }],
|
||||
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
|
||||
// Waiting with this need to refactoring timeSrv & locationUtil.init
|
||||
// '@babel/plugin-transform-react-constant-elements',
|
||||
'@babel/plugin-transform-react-constant-elements',
|
||||
'@babel/plugin-proposal-nullish-coalescing-operator',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-syntax-dynamic-import', // needed for `() => import()` in routes.ts
|
||||
|
Loading…
Reference in New Issue
Block a user