@react-native/metro-config

Metro configuration for React Native.

  • Types
  • ESM
License
MIT
Install Size
6 kB(31.3 MB)
Vulns
0
Published

Get started

$npm install @react-native/metro-config
$pnpm add @react-native/metro-config
$yarn add @react-native/metro-config
$bun add @react-native/metro-config
$deno add npm:@react-native/metro-config
$vlt install @react-native/metro-config
$vp add @react-native/metro-config

Weekly DownloadsAcross all versions

Node.js
^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0

Versions

View all versions
0.85.3
latest
0.83.9
0.83-stable
0.81.6
0.81-stable
0.80.3
0.80-stable
0.79.7
0.79-stable
0.78.3
0.78-stable
0.77.3
0.77-stable
0.76.9
0.76-stable

Readme

@react-native/metro-config

Version

Installation

yarn add --dev @react-native/js-polyfills metro-config @react-native/metro-babel-transformer metro-runtime @react-native/metro-config

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Testing

To run the tests in this package, run the following commands from the React Native root folder:

  1. yarn to install the dependencies. You just need to run this once
  2. yarn jest packages/metro-config.