-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Webpack 5 🚀 #1060
Webpack 5 🚀 #1060
Conversation
@@ -232,6 +232,9 @@ | |||
"tsc-watch": "^4.2.9", | |||
"xhr-mock": "^2.5.1" | |||
}, | |||
"resolutions": { | |||
"**/webpack": "^5.0.0" |
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.
I don't love this, but this one line lets us get rid of >1000 lines of dependencies in one sweep.
We can remove it once Storybook 7 is released, which will no longer depend on Webpack 4 (storybookjs/storybook#13491)
Awesome Marcel! I checked out the branch, ran
I also tried Then I switched to Node Does it work for you with v12? (I can see staging is still on v12, so I'm guessing it does, and maybe it has something to do with macs only?) |
Oh no! That's interesting, but in a bad way 😞 I currently have Node 12.22.7 installed, and with that it works just fine. But that's also on the weird Windows/Linux setup mixture that I'm running on. |
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.
Works very nicely for me! Seems to also be a bit faster. Thanks a lot for pushing this! 🙌
(I'm on 12.22.3 on WSL 2 on windows with lots of RAM) |
@marcelgerber @danielgavrilov In the crashlogs it mentions wasm - maybe something changed regarding that and the Mac processor architecture? When Lars is back we can ask him to try it with node 12 and then if it fails with node 16 |
Great that you could test this @danyx23, thank you! And yes, it should be quite a bit faster than Webpack 4, especially with a warm cache. After reading pmmmwh/react-refresh-webpack-plugin#259, I'm now also pretty much sure that this is an issue with all Node 12 versions on macOS (especially since they only receive security fixes at this point). |
It doesn't unfortunately. 🙁 |
Also fails for me on node 12.22.3, but works just fine on 16.13.2, anecdotally. Any obstacles to bumping node whilst we're here? |
@larsyencken upgrading the servers and verifying they end up using the right node version is the main (not huge) obstacle. Described in more detail here: https://www.notion.so/Update-to-Node-16-04bd3b117bd64f19b85a914e40aa1bad |
I migrated the issue to Github now: #1096 |
714c023
to
bf62a44
Compare
bf62a44
to
5ea3aa0
Compare
I don't know what exactly is causing the code move from vendors.js to owid.js, but as long as it's down overall and everything works that's probably fine?
This is now deployed to tufte again, and all is looking good! 🎉 |
Revert "Merge pull request #1060 from owid/webpack5"
Live on: tufte
Updates our infrastructure to finally be using Webpack 5, the new webpack cli, the new dev server, updated loaders and plugins, and all the good stuff. Everything works.