We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
react-error-overlay
1 parent 86b4b6a commit 9ce144eCopy full SHA for 9ce144e
packages/react-error-overlay/src/index.js
@@ -167,3 +167,10 @@ window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady = function iframeReady()
167
isLoadingIframe = false;
168
updateIframeContent();
169
};
170
+
171
+if (process.env.NODE_ENV === 'production') {
172
+ console.warn(
173
+ 'react-error-overlay is not meant for use in production. You should ' +
174
+ 'ensure it is not included in your build to reduce bundle size.'
175
+ );
176
+}
0 commit comments