You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just want to share for who is wondering howto upgrade to webpack4 and babel 7. I spend a lot of hours over the past days struggling with react-hot-loader that was not working
Babel7
Upgrade is pretty straight on, just add the new namespaced packages en replace the requires with their namespaced ones. Take a look at the package.json and fix where problems arise.
Is currently not available for webpack 4, but there is a fork 7rulnik/react-loadable/webpack see issue
I put a resolve.alias in mij webpack configurations but there still some places you need to use the new package name.
Everey component that is load through react-loadable must be hot exported see: react-hot-loader
Eslint
eslint-config-airbnb does not play nice with the latest eslint packages. But the fix was simple i looked over at the source and now i extend with the separate rule files.
Hello Bertho,
I just want to share for who is wondering howto upgrade to webpack4 and babel 7. I spend a lot of hours over the past days struggling with react-hot-loader that was not working
Babel7
Webpack 4
react-loadable
Eslint
ecmaversion: 2017
eslint requestedSee full source over at https://github.com/lemonCMS/react-redux-universal-hot-example-1
I did not create a pull request because of the hacky stuff that went on to get it to work.
Happy Coding
The text was updated successfully, but these errors were encountered: