-
Notifications
You must be signed in to change notification settings - Fork 478
Please upgrade @expo/webpack-config's webpack dependency to 5.x #2881
Comments
Looks like it's not ready yet, there's a lot of overlap between CRA and expo/webpack-config, a couple of the plugins don't appear to support Webpack 5 properly yet facebook/create-react-app#7929 |
Webpack 5 doesn't seem fully there yet, but Next.js has experimental support for it: https://nextjs.org/docs/messages/webpack5 |
I'd like to bring this issue back up. Vercel is putting real resources behind Webpack 5, and Next is releasing many advances for it. It has many performance improvements that would be nice to take advantage of for build time. Maybe it could be published behind a |
Possibly related: #3226 |
Next.js now uses webpack 5 by default. https://nextjs.org/blog/next-10-2#webpack-5 This has big DX improvements for web. Does anyone know how to make Expo's webpack config do the same? I'm open to helping, but I'm not really familiar with Webpack. |
I believe I figured this out. I'll submit a PR once I stress test it more. As it stands, my solution is to disable Expo's transpiling of modules when |
Building upon @nandorojo's work, I have an experimental version of This won't work for the pure Expo web applications, but if your using NextJS it should allow you to update to NextJS 10.2 and use Webpack5. https://github.com/marklawlor/expo-nextjs-webpack-5 |
This has severe implications for users of Node 17 and later, see webpack/webpack#14532 |
Description
@expo/webpack-config
'swebpack
dependency is currently 4.43.0, the last major version. The current major version is 5.x, and it'd be great to support that: I'd like to be able to take advantage of some of the changes in recent releases.Expected Behavior
@expo/webpack-config
should depend onwebpack@5
Observed Behavior
@expo/webpack-config
depends onwebpack@4.43.0
Environment
I don't think this is relevant, but here you are!
The text was updated successfully, but these errors were encountered: