Feature: Add extends
config loading support
#977
Labels
馃憢馃徎 Good First Issue
An issue or task that is ideal for new open source contributors.
Type: Feature Request
馃憢馃徎 Good First Issue
Description
We'd like Metro's configuration to accept an
extends
key, similar to other tools such as ESLint and TypeScript.This would benefit Metro users in enabling a more convenient and concise API that abstracts away the need for
mergeConfig()
today.Related context:
Rough design
The implementation for this feature should live in the
metro-config
package.MetroConfig
type constituents to addextends?: $ReadOnlyArray<string>
.loadMetroConfigFromDisk
to readextends
if present.extends
, attempt torequire
the config path relative to thefilepath
of the input config file, and apply the imported object in order viamergeConfig()
.packages/metro/src/integration_tests/
.The text was updated successfully, but these errors were encountered: