@react-native/metro-config
Advanced tools
Comparing version 0.73.0-nightly-20230622-0201e51bb to 0.73.0-nightly-20230628-15d735b35
13
index.js
@@ -11,5 +11,5 @@ /** | ||
/*:: import type {MetroConfig} from 'metro-config'; */ | ||
/*:: import type {ConfigT} from 'metro-config'; */ | ||
const {mergeConfig} = require('metro-config'); | ||
const {getDefaultConfig: getBaseConfig, mergeConfig} = require('metro-config'); | ||
@@ -41,4 +41,4 @@ const INTERNAL_CALLSITES_REGEX = new RegExp( | ||
projectRoot /*: string */ | ||
) /*: MetroConfig */ { | ||
return { | ||
) /*: ConfigT */ { | ||
const config = { | ||
resolver: { | ||
@@ -81,4 +81,9 @@ resolverMainFields: ['react-native', 'browser', 'main'], | ||
}; | ||
return mergeConfig( | ||
getBaseConfig.getDefaultValues(projectRoot), | ||
config, | ||
); | ||
} | ||
module.exports = {getDefaultConfig, mergeConfig}; |
{ | ||
"name": "@react-native/metro-config", | ||
"version": "0.73.0-nightly-20230622-0201e51bb", | ||
"version": "0.73.0-nightly-20230628-15d735b35", | ||
"description": "Metro configuration for React Native.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
3978
80