From 532b8d4bc2bbbc24d5fb1d8749cf28932f011779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 6 Apr 2021 09:24:19 +0200 Subject: [PATCH] Babel: @babel/plugin-transform-react-constant-elements to babel config to optimize react performance (#32629) --- scripts/webpack/babel.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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