Skip to content

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

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