-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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 Support #9426
Comments
I'd strongly recommend not investing time into this until webpack 5 is stable. |
Eventually we'll upgrade to webpack 5 when it's stable. |
Is there a ticket tracking this? |
@ryanirilli i was hoping this to be the tracking ticket (even if it’s not ready yet) |
I’m looking into this. Wrapping up some work on Webpack 5 core and I want to see how it does with next. Part of the challenge can be getting access to webpack configs to change them accordingly. For those who need to access the restricted configs of next. I wrote something to gain full access. It allows me to configure webpack accordingly without needing to fork next. https://github.com/ScriptedAlchemy/nextjs-webpack-override |
@timneutkens is it worth reopening this ticket considering someone is looking into it for next? And there needs to be a place that’s tracking this anyway even if there is no official support right now. |
I'll re-open but we have different plans with regards to this and an external PR to upgrade has a low chance of getting merged right now (saying this so that you don't waste time on it). |
Thanks for the info @timneutkens! Any detail around those plans or not yet? |
Not yet. |
|
Keeping a checklist of what to do in #13341 |
Hey @timneutkens im assuming Next will switch to webpack 5 in a major release at some point? So users won’t have to rely on “resolutions” forever. |
Correct, we still want more people to test it first though 👍 And we'll likely have backwards compat with webpack 4 for a bit as well |
V10 will also follow up with or include async capabilities, which make module federation work. @timneutkens, I've gone up with a plan for flushing js chunks from remote modules so they can be ssrd. When you're ready to take a loo at MF - I'm happy to supply what I've built |
In my case adding the resolutions I got this warning:
And checking |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Feature request
Webpack 5 is in beta and will be out soon, would be good to see next support it.
This issue is more of an umbrella placeholder for anyone who finds issues.
I was testing next.js against version 5 for feedback
Is your feature request related to a problem?
Its a feature enhancement and preparation
Steps to replicate:
set
in package.json and yarn install.
Here is some output when i try running next over webpack 5
I believe some of these can be fixed whilst still running against webpack 4.0
It will take some unpacking and working through
The text was updated successfully, but these errors were encountered: