From 1a3adfa10b8e6e4063b09a28f0bd6ecd26543cb2 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 6 Oct 2021 13:01:29 -0400 Subject: [PATCH] Disable error minification in more bundles Not worth it because the number of errors does not outweight the size of the formatProdErrorMessage runtime. --- scripts/rollup/bundles.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index c24281d43ef089..f878b83e39c86d 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -137,7 +137,7 @@ const bundles = [ moduleType: ISOMORPHIC, entry: 'react-fetch/index.browser', global: 'ReactFetch', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: ['react'], }, @@ -157,7 +157,7 @@ const bundles = [ moduleType: ISOMORPHIC, entry: 'react-fs/index.browser.server', global: 'ReactFilesystem', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: [], }, @@ -177,7 +177,7 @@ const bundles = [ moduleType: ISOMORPHIC, entry: 'react-pg/index.browser.server', global: 'ReactPostgres', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: [], }, @@ -328,7 +328,7 @@ const bundles = [ moduleType: RENDERER, entry: 'react-server-dom-webpack', global: 'ReactServerDOMReader', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: ['react'], }, @@ -558,7 +558,7 @@ const bundles = [ moduleType: RENDERER, entry: 'react-noop-renderer', global: 'ReactNoopRenderer', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: ['react', 'scheduler', 'scheduler/unstable_mock', 'expect'], }, @@ -568,7 +568,7 @@ const bundles = [ moduleType: RENDERER, entry: 'react-noop-renderer/persistent', global: 'ReactNoopRendererPersistent', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: ['react', 'scheduler', 'expect'], }, @@ -578,7 +578,7 @@ const bundles = [ moduleType: RENDERER, entry: 'react-noop-renderer/server', global: 'ReactNoopRendererServer', - minifyWithProdErrorCodes: true, + minifyWithProdErrorCodes: false, externals: ['react', 'scheduler', 'expect'], },