mirror of
https://github.com/react/react-native.git
synced 2026-09-28 05:13:06 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57648 Legacy check, clean up. Changelog: [Internal] ___ Differential Revision: D113396915 fbshipit-source-id: 697b65f1a02a98949f490b2cc94d0864d52d1472
@react-native/metro-config
Metro configuration for React Native. In React Native, your Metro config should extend either @react-native/metro-config or @expo/metro-config. These packages contain essential defaults necessary to build and run React Native apps.
See Configuring Metro for the full guide.
Usage
const {
getDefaultConfig,
mergeConfig,
} = require('@react-native/metro-config');
/**
* Metro configuration
* https://metrobundler.dev/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);