From 6b22959a86e45bac90c08abbf04f32c4afb09a10 Mon Sep 17 00:00:00 2001 From: Georgii Karataev Date: Thu, 15 Aug 2024 09:41:36 +0200 Subject: [PATCH] fix: Change condition for the IS_DEV flag (#2239) No jira. This fixes the IS_DEV flag being always false. insights-chrome assigns "production" value if there is a production build or leaves it undefined in other cases (including the development build). --- fec.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fec.config.js b/fec.config.js index ae5f897b5..9207a4813 100644 --- a/fec.config.js +++ b/fec.config.js @@ -12,7 +12,7 @@ module.exports = { debug: true, plugins: [ new webpack.DefinePlugin({ - IS_DEV: process.env.NODE_ENV === 'development', + IS_DEV: process.env.NODE_ENV !== 'production', }), ], moduleFederation: {