Skip to content

Commit

Permalink
preserve full error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Molloy committed Apr 8, 2020
1 parent 6818a2a commit c96e246
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ function getBabelConfig(
return Object.assign({}, options, {
plugins: options.plugins.concat([
// Minify invariant messages
require('../error-codes/transform-error-messages'),
[
require('../error-codes/transform-error-messages'),
// Preserve full error messages for ∆
{noMinify: true},
],
]),
});
case RN_OSS_DEV:
Expand Down Expand Up @@ -171,7 +175,11 @@ function getBabelConfig(
// Use object-assign polyfill in open source
path.resolve('./scripts/babel/transform-object-assign-require'),
// Minify invariant messages
require('../error-codes/transform-error-messages'),
[
require('../error-codes/transform-error-messages'),
// Preserve full error messages for ∆
{noMinify: true},
],
]),
});
default:
Expand Down

0 comments on commit c96e246

Please sign in to comment.