-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle async loading of patch #739
Conversation
Codecov Report
@@ Coverage Diff @@
## next #739 +/- ##
=========================================
+ Coverage 75.34% 75.6% +0.26%
=========================================
Files 12 13 +1
Lines 434 451 +17
Branches 99 136 +37
=========================================
+ Hits 327 341 +14
- Misses 90 92 +2
- Partials 17 18 +1
Continue to review full report at Codecov.
|
Hey! I've simplified babel. Look like it works well. |
e47f270
to
906646d
Compare
@@ -1 +1,4 @@ | |||
/* noop */ | |||
module.exports = { | |||
default: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
.eslintrc.js
Outdated
allow: [ | ||
'__REACT_HOT_LOADER__', | ||
'__standin_getCurrent', | ||
'__registeredComponents', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
@@ -31,10 +31,11 @@ module.exports = function plugin(args) { | |||
const buildTagger = template( | |||
` | |||
var UNUSED = (function () { | |||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | |||
return; | |||
var __REACT_HOT_LOADER__ = global.__REACT_HOT_LOADER__ || require('react-hot-loader/patch').default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global does not work in browser.
Implement #738