-
Notifications
You must be signed in to change notification settings - Fork 188
chore: Upgrade webpack dependencies to match V23 #15079
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
Conversation
|
Webpack seems to fail on unknown option with the new version: |
|
at least #9934 should be picked. |
|
Pretty sure we would need to backport 801dd25 first |
|
Most likely. There were some issues with it (can't specifically remember what) and then builds broke so didn't have time to continue. |
|
devserver configuration needs to be updated due to webpack-cli 3 -> 4 update. |
This is compatible with Webpack 5 (cherry picked from commit d890ddf)
|
Kudos, SonarCloud Quality Gate passed!
|
|
Current state: |
|
Kudos, SonarCloud Quality Gate passed!
|
|
Uh, why did the tests pass now? I re-ran them to check the 2.8 build, not this particular PR.. |
|
Kudos, SonarCloud Quality Gate passed!
|
Code reviewed:Seems good to me. Tested the buildwith locally built Flow-server dependency and included it in my custom V14 application. Smoke test
Windows 10
Windows 11
Let me know if more OS/Browser shall be tested. Webpack works nicely it seems to me (from logs): All Startup logs: The only interesting thing is the double startup (after the webpack compilation Spring starts again, maybe it is normal) and the warning messages, but I am not sure if it is related to this change: |
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 would be good if a second pair of eyes could double checked the warning messages:
npm WARN While resolving: no-name@undefined
npm WARN Found: [email protected]
npm WARN node_modules/webpack-dev-server
npm WARN dev webpack-dev-server@"4.10.0" from the root project
npm WARN 1 more (webpack-babel-multi-target-plugin)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack-dev-server@"^3.1.0" from [email protected]
npm WARN node_modules/webpack-babel-multi-target-plugin
But as said, smoke test was good, just builds having some warning messages.
|
Tested with Key differences:
Smoke Test on Mac/Chrome worked. Full logs: |
|
I bet double reloads were the bug in some old versions, but were fixed afterwards. To be able to apply this patch, we have to find a commit that fixes the double reload. If it takes a significant efforts, I propose to close this PR. |
|
The peer dependency warning is real as https://github.com/DanielSchaffer/webpack-babel-multi-target-plugin depends on webpack-dev-server 3.x. It is not easy to say though if it would still work with webpack-dev-server 4.x or if there are edge cases where it would fail. |
|
Spring Boot restarts because something on the classpath changed. You can see what by adding to |
|
The webpack-babel-multi-target-plugin project is dead though, with no commits in a couple of years and a webpack 5 PR that was "finished" in 2021 but never merged. So no reason to imagine that it will ever be updated officially for webpack-dev-server 4.x |
|
Thank you vm @Artur- for the insights, additional information, and investigation. I propose in that case to close this PR because:
So let's not switch and use |
|
As we discussed in our daily once more, we close this PR. If anytime in the future
|









No description provided.