Skip to content

Metro

Enabled

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

  • metro

  • react-native

Note

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

Default configuration

This configuration is added automatically if the plugin is enabled:

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

Your 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.

Generated from source

This page was generated from the metro plugin source code.

ISC License © 2024 Lars Kappert