Open aleclarson opened 5 years ago
If you want, I can send a PR with all of these. :)
Would be awesome! On Wed, 26 Dec 2018 at 01:06, Alec Larson notifications@github.com wrote:
If you want, I can send a PR with all of these. :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ptmt/react-native-macos/issues/217#issuecomment-449876138, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9SU6jdWpIgWdejOyz4GWzzmZujvbx2ks5u8qFTgaJpZM4ZhOfo .
Hey, I've been working on upgrading the
metro
dependency from v0.24.3 to v0.45.2 (which is a version I've recently added symlink support to).I think you'll find my commits useful, but many of them depend on improvements I've made to
metro
andjest-haste-map
which are not yet merged.Here's the list of the commits you can cherry-pick without upgrading
metro
or anything:fix: add jest/hasteImpl.js
Add support for out-of-tree platform plugins (#20825)
feat: inject "macos" platform automatically
Pass the maxWorkers config param correctly to Metro
fix: "react" peer dependency
fix: "Duplicate declaration" transform error
fix: "optional rest parameters" eslint error
Side note: None of the above are related to upgrading Metro. I just fixed these as I was upgrading.
Commits 1 thru 3 are my favorite, because they let you omit the
platforms
andprovidesModuleNodeModules
properties from yourmetro.config.js
module.But commit 4 is really nice too, since it fixes some config options that were being overwritten by defaults.