diff --git a/scripts/webpack/babel.config.js b/scripts/webpack/babel.config.js index fee6f0b7656..93aec8386c5 100644 --- a/scripts/webpack/babel.config.js +++ b/scripts/webpack/babel.config.js @@ -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