Skip to content

Commit

Permalink
fix: remove react-error-overlay warning in dev (#6384)
Browse files Browse the repository at this point in the history
默认是上次更新把之前的修复覆盖了
  • Loading branch information
jiyingzhi committed Apr 8, 2021
1 parent 78b0c7d commit 7a52862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/bundled/webpackHotDevClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -6874,7 +6874,7 @@
(window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady = function () {
(re = !0), (te = !1), ve();
}),
true &&
process.env.NODE_ENV === 'production' &&
console.warn(
'react-error-overlay is not meant for use in production. You should ensure it is not included in your build to reduce bundle size.',
);
Expand Down

0 comments on commit 7a52862

Please sign in to comment.