Skip to content

Commit

Permalink
fix: complain if hot patches not present, fixes #1173
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 12, 2019
1 parent de56e90 commit efc3d6b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/reactHotLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,11 @@ const reactHotLoader = {
configuration.ignoreSFC = configuration.ignoreSFCWhenInjected

reactHotLoader.IS_REACT_MERGE_ENABLED = true
console.info(
'React-Hot-Loader: react-🔥-dom patch detected. You may use all the features.',
)
} else {
// Actually everything works...
// console.warn(
// 'React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work.',
// )
console.warn(
'React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work.',
)
}
/* eslint-enable */
if (!React.createElement.isPatchedByReactHotLoader) {
Expand Down

0 comments on commit efc3d6b

Please sign in to comment.