From f300bf4f8438071204f93cb15a540e02e3457113 Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok Date: Tue, 18 Aug 2026 16:20:25 +0200 Subject: [PATCH] ignore reasons when OPEN_ANALYZER is not set --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index a1a48ff602..d3019fce6b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -108,7 +108,8 @@ module.exports = async function (env, argv) { statsFilename: '../stats.json', analyzerMode: OPEN_ANALYZER ? 'server' : 'json', defaultSizes: 'parsed', - statsOptions: {reasons: false}, + // reasons balloon stats.json past Node's max string length, breaking bundle-size-diff in CI + statsOptions: OPEN_ANALYZER ? null : {reasons: false}, }), ) }