Metro
Enabled
Section titled “Enabled”This plugin is enabled if there’s a match in "dependencies" or "devDependencies" in package.json:
-
metro -
react-native
Default configuration
Section titled “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.
False positives for platform-specific unused files?
Override the default entry patterns to match platforms and extensions.
Generated from source
Section titled “Generated from source”This page was generated from the metro plugin source code.
ISC License © 2024 Lars Kappert