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 30, 2017
1 parent 4ae60df commit 70aa887
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/renderers/shared/fiber/ReactFiberDevToolsHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ var testMinification = function testMinification() {
}
};

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.',
);

if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
__REACT_DEVTOOLS_GLOBAL_HOOK__.supportsFiber
Expand Down

0 comments on commit 70aa887

Please sign in to comment.