Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-export
metro-config
's resolveConfig
from metro
Summary: `react-native-community/cli-plugin-metro` has a dependency on `mergeConfig`, `loadConfig` and `resolveConfig` from `metro-config`, here: https://github.com/react-native-community/cli/blob/v12.0.0-alpha.2/packages/cli-plugin-metro/src/tools/loadMetroConfig.ts#L3-L9 Otherwise, `cli-plugin-metro` only has build-time dependencies on `metro-config`. By exporting `resolveConfig` in addition to the other two (which we already re-export), we can remove the `metro-config` runtime dependency and use `metro` instead. That's a step closer to making `metro` a `peerDependency` of `cli-plugin-metro`, with version dictated by the host project's dependency, ultimately decoupling Metro from the CLI. Changelog: ``` * **[Feature]** Re-export `metro-config`'s `resolveConfig` from `metro`. ``` Reviewed By: hoxyq Differential Revision: D44870484 fbshipit-source-id: c38175cac5904b0b9540bab6b4c8e70d957d378e
- Loading branch information