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

react-hot-loader v3 #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zacacollier
Copy link

probably gotta fix the HMR issue you mentioned first, but I figured I'd submit this while I have it 👍

@tribou
Copy link
Owner

tribou commented Oct 13, 2017

Awesome!! I'll review this weekend! Thanks!!

💃

@tribou tribou self-requested a review October 13, 2017 18:36
@@ -16,7 +16,8 @@
"test": {
"plugins": [
"transform-class-properties",
"transform-object-assign"
"transform-object-assign",
"react-hot-loader/babel"
Copy link
Owner

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

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'


})

}
Copy link
Owner

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))

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.

2 participants