| 694 | /* WEBPACK VAR INJECTION */(function(process) { |
| 695 | |
| 696 | function checkDCE() { |
| 697 | /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ |
| 698 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') { |
| 699 | return; |
| 700 | } |
| 701 | if (process.env.NODE_ENV !== 'production') { |
| 702 | // This branch is unreachable because this function is only called |
| 703 | // in production, but the condition is true only in development. |
| 704 | // Therefore if the branch is still here, dead code elimination wasn't |
| 705 | // properly applied. |
| 706 | // Don't change the message. React DevTools relies on it. Also make sure |
| 707 | // this message doesn't occur elsewhere in this function, or it will cause |
| 708 | // a false positive. |
| 709 | throw new Error('^_^'); |
| 710 | } |
| 711 | try { |
| 712 | // Verify that the code above has been dead code eliminated (DCE'd). |
| 713 | __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); |
| 714 | } catch (err) { |
| 715 | // DevTools shouldn't crash React, no matter what. |
| 716 | // We should still report in case we break this code. |
| 717 | console.error(err); |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | if (process.env.NODE_ENV === 'production') { |
| 722 | // DCE check should happen before ReactDOM bundle executes so that |