Skip to content

Commit

Permalink
Disable error minification in more bundles
Browse files Browse the repository at this point in the history
Not worth it because the number of errors does not outweight the size
of the formatProdErrorMessage runtime.
  • Loading branch information
acdlite committed Oct 6, 2021
1 parent 2721e61 commit 1a3adfa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const bundles = [
moduleType: ISOMORPHIC,
entry: 'react-fetch/index.browser',
global: 'ReactFetch',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: ['react'],
},

Expand All @@ -157,7 +157,7 @@ const bundles = [
moduleType: ISOMORPHIC,
entry: 'react-fs/index.browser.server',
global: 'ReactFilesystem',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: [],
},

Expand All @@ -177,7 +177,7 @@ const bundles = [
moduleType: ISOMORPHIC,
entry: 'react-pg/index.browser.server',
global: 'ReactPostgres',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: [],
},

Expand Down Expand Up @@ -328,7 +328,7 @@ const bundles = [
moduleType: RENDERER,
entry: 'react-server-dom-webpack',
global: 'ReactServerDOMReader',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: ['react'],
},

Expand Down Expand Up @@ -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'],
},

Expand All @@ -568,7 +568,7 @@ const bundles = [
moduleType: RENDERER,
entry: 'react-noop-renderer/persistent',
global: 'ReactNoopRendererPersistent',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: ['react', 'scheduler', 'expect'],
},

Expand All @@ -578,7 +578,7 @@ const bundles = [
moduleType: RENDERER,
entry: 'react-noop-renderer/server',
global: 'ReactNoopRendererServer',
minifyWithProdErrorCodes: true,
minifyWithProdErrorCodes: false,
externals: ['react', 'scheduler', 'expect'],
},

Expand Down

0 comments on commit 1a3adfa

Please sign in to comment.