-
Notifications
You must be signed in to change notification settings - Fork 9
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
react-hot-loader v3 #47
base: master
Are you sure you want to change the base?
Conversation
Awesome!! I'll review this weekend! Thanks!! 💃 |
@@ -16,7 +16,8 @@ | |||
"test": { | |||
"plugins": [ | |||
"transform-class-properties", | |||
"transform-object-assign" | |||
"transform-object-assign", | |||
"react-hot-loader/babel" |
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.
Is this working? I think this only adds it if NODE_ENV=test
We might want to make a separate "development"
property for the dev plugins like this one and see how that works
@@ -17,6 +17,7 @@ function getEntry (entry/* : ?(string | Object | Array<*>) */) { | |||
return { | |||
entry: { | |||
bundle: [ | |||
'react-hot-loader/patch', |
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.
it may not be as clean to do this here, but we should probably only add this if NODE_ENV === 'development'
|
||
}) | ||
|
||
} |
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.
Did you try out the new relaxed arrow function lint rules?? ...we can now do this: 😉
if (module.hot) module.hot.accept('src/routes', () => render(App))
probably gotta fix the HMR issue you mentioned first, but I figured I'd submit this while I have it 👍