Skip to content
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

Merged
merged 3 commits into from
Dec 28, 2017
Merged

fix: handle async loading of patch #739

merged 3 commits into from
Dec 28, 2017

Conversation

gregberge
Copy link
Collaborator

Implement #738

@codecov-io
Copy link

codecov-io commented Dec 27, 2017

Codecov Report

Merging #739 into next will increase coverage by 0.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
packages/react-hot-loader/src/patch.dev.js 85.71% <ø> (ø) ⬆️
...-hot-loader/src/reconciler/hotReplacementRender.js 87.73% <0%> (ø) ⬆️
packages/react-hot-loader/patch.js 100% <0%> (ø)
packages/react-hot-loader/src/AppContainer.dev.js 73.68% <0%> (+5.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 378b677...f981764. Read the comment docs.

@theKashey
Copy link
Collaborator

Hey! I've simplified babel. Look like it works well.

@@ -1 +1,4 @@
/* noop */
module.exports = {
default: false,
Copy link
Collaborator Author

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',
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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.

@gregberge gregberge merged commit af8bd4b into next Dec 28, 2017
@gregberge gregberge deleted the handle-async-loading branch December 28, 2017 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants