ignore reasons when OPEN_ANALYZER is not set

This commit is contained in:
Oleksii Bulenok
2026-08-18 16:20:25 +02:00
parent f986612bad
commit f300bf4f84
+2 -1
View File
@@ -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},
}),
)
}