-
Notifications
You must be signed in to change notification settings - Fork 478
Conversation
Just curious if webpack5 is still on the timeline. I know there have been some changes recently and maybe @EvanBacon is looking at using Metro as a single bundler for native and web? I am seeing some weirdness using SDK 46 and webpack4 devServer, ie:
UPDATE: But this is still an issue. Expo is the only thing holding me back from using the new features of webpack5 elsewhere in my monorepo. |
Is this still in the plans? |
@EvanBacon I managed to fix the remaining items on this branch, with the only final issue being the We would love to be able to get Module Federation working in Expo for the mobile builds (I got it working for the web build, but mobile builds are failing - I am digging). If there's anything I can do to help, please let me know - would love to see Webpack 5 (and specifically Module Federation) hit Expo! |
7ab953e
to
8cc4764
Compare
Update ManifestHandler.ts Update .eslintrc.js Update parseStartOptions.ts fix types Update yarn.lock Delete more unused code and fix types fix types drop unimodules helper (no longer used in Next.js adapter) update tests drop more native support wip -- drop native update deps Update basic-test.js updated tests Update startAsync.ts drop / revert Update package.json
69bf55c
to
6e9469d
Compare
@sbhrule15 I'll be dropping the experimental native support in Webpack because I've been running into a lot of issues (mostly memory related) which I can't seem to track down. Webpack support in Expo will be sunset later this year in favor of universal Metro (sometime after we add a number of critical features like bundle splitting). Repack should still be capable of running in Expo, iirc the team is also focused on module federation support. |
Why
CRA (the base config) has just merged support for Webpack v5 (facebook/create-react-app#11201), meaning we can start upgrading.
expo-cli start --web
#4575How
Prerequisites
I added a few features that should be split out and merged separately:
npx expo
enforces that the Webpack config must be installed locally, meaning users will opt-in manually.Test Plan
expo start -w
expo start:web
Error overlay should show and work (currently doesn't, seems related to CRA) -- Pending V5 fix react error overlay build facebook/create-react-app#11799Never merged.Babel caching should workVideo and image loading / importing like metro (interop)Moved to Metro for web.expo build:web