Skip to content

Commit

Permalink
Adds a warning for minified development build
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jun 13, 2017
1 parent 8281a08 commit dcea5ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/renderers/shared/fiber/ReactFiberDevToolsHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ if (
return 42;
}
};
warning(
(testMinification.name || testMinification.toString())
.indexOf('testMinification') !== -1,
"It looks like you're using a minified copy of the development build " +
'of React. When deploying React apps to production, make sure to use ' +
'the production build which skips development warnings and is faster. ' +
'See https://fb.me/react-minification for more details.',
);
rendererID = inject(Object.assign({}, internals, {testMinification}));
};

Expand Down

0 comments on commit dcea5ed

Please sign in to comment.