Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore extracting errors if the build isn't minified anyway
  • Loading branch information
sebmarkbage committed Oct 6, 2021
commit b12601b2fd7189097c99f5a23f1ac0003c39c8a8
11 changes: 6 additions & 5 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,13 @@ function getPlugins(
const shouldStayReadable = isFBWWWBundle || isRNBundle || forcePrettyOutput;
return [
// Extract error codes from invariant() messages into a file.
shouldExtractErrors && {
transform(source) {
findAndRecordErrorCodes(source);
return source;
shouldExtractErrors &&
bundle.minifyWithProdErrorCodes !== false && {
transform(source) {
findAndRecordErrorCodes(source);
return source;
},
},
},
// Shim any modules that need forking in this environment.
useForks(forks),
// Ensure we don't try to bundle any fbjs modules.
Expand Down