Skip to content

Metro

This plugin is enabled if there’s a match in "dependencies" or "devDependencies" in package.json:

  • metro

  • react-native

If this plugin is enabled, the following configuration is added automatically:

{
"metro": {
"config": [
"metro.config.{js,cjs,json}",
"package.json"
],
"entry": [
"src/**/*.{ios,android,windows,web,native,default}.{js,jsx,json,ts,tsx}"
]
}
}

Depending on local configuration, plugins may modify the defaults as shown.

Custom config or entry options override default values, they are not merged.

See Plugins for more details about plugins and their entry and config options.

False positives for platform-specific unused files? Override the default entry patterns to match platforms and extensions.

This page was generated from the metro plugin source code.

ISC License © 2024 Lars Kappert