Skip to content

Metro

Enabled

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

  • metro

  • react-native

Default configuration

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.

Note

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

Generated from source

This page was generated from the metro plugin source code.

ISC License © 2024 Lars Kappert