-
Notifications
You must be signed in to change notification settings - Fork 3
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade to webpack 4 #110
Comments
This will be an adventure... Got a few hours in and I'm probably not close. Diffing 3 and 4 is not really an option because of the massive amounts of change. |
See this comment? It took quite some effort to obtain that knowledge. But (from that comment):
I am not yet sure, but they might have read this comment, hehe. We'll see... |
For future reference, on Linux I had to do: The error I had was: |
https://github.com/webpack/webpack-dev-middleware/pull/250/files
|
Too bad some documentation is missing: webpack/webpack.js.org#1968 |
Phew, that was an adventure! But it seems I have it in working order again. It's funny to look back at the emotion curve:
In some more detail. The changes to webpack are really an improvement. It seems they have refactored the code I was referencing in an earlier comment and that the With its current configuration it generates an extra runtime for each chunk, we could possibly improve it so it will have similar behavior as before. TODO:
|
For now we can't switch to the newest
|
https://medium.com/webpack/webpack-4-mode-and-optimization-5423a6bc597a states:
|
Note to self: don't forget to add a breaking change entry for |
It seems the last commit has fixed the runtime problem (probably because of |
We need to check this information: https://github.com/webpack/webpack/releases
It seems this release has a similar approach for chunking modules. The
CommonsChunkPlugin
was removed so it's not weird to think this version would break our chunk plugins. Potentially this could be positive as we might be able to switch to the built-in version.More information about the removal of
CommonsChunkPlugin
here: https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693The text was updated successfully, but these errors were encountered: