@react-native/metro-config
Advanced tools
Comparing version 0.75.0-rc.2 to 0.76.0-nightly-20240627-TEMP
@@ -14,13 +14,2 @@ "use strict"; | ||
var _metroConfig = require("metro-config"); | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* | ||
* @format | ||
* @oncall react_native | ||
*/ | ||
const INTERNAL_CALLSITES_REGEX = new RegExp( | ||
@@ -49,9 +38,5 @@ [ | ||
] | ||
// Make patterns work with both Windows and POSIX paths. | ||
.map((pathPattern) => pathPattern.replaceAll("/", "[/\\\\]")) | ||
.join("|") | ||
); | ||
/** | ||
* Get the base Metro configuration for a React Native project. | ||
*/ | ||
function getDefaultConfig(projectRoot) { | ||
@@ -65,3 +50,2 @@ const config = { | ||
serializer: { | ||
// Note: This option is overridden in cli-plugin-metro (getOverrideConfig) | ||
getModulesRunBeforeMainModule: () => [ | ||
@@ -109,4 +93,2 @@ require.resolve("react-native/Libraries/Core/InitializeCore"), | ||
}; | ||
// Set global hook so that the CLI can detect when this config has been loaded | ||
global.__REACT_NATIVE_METRO_CONFIG_LOADED = true; | ||
@@ -113,0 +95,0 @@ return (0, _metroConfig.mergeConfig)( |
{ | ||
"name": "@react-native/metro-config", | ||
"version": "0.75.0-rc.2", | ||
"version": "0.76.0-nightly-20240627-TEMP", | ||
"description": "Metro configuration for React Native.", | ||
@@ -29,4 +29,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@react-native/js-polyfills": "0.75.0-rc.2", | ||
"@react-native/metro-babel-transformer": "0.75.0-rc.2", | ||
"@react-native/js-polyfills": "0.76.0-nightly-20240627-TEMP", | ||
"@react-native/metro-babel-transformer": "0.76.0-nightly-20240627-TEMP", | ||
"metro-config": "^0.80.3", | ||
@@ -33,0 +33,0 @@ "metro-runtime": "^0.80.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5538
110
+ Added@react-native/babel-plugin-codegen@0.76.0-nightly-20240627-TEMP(transitive)
+ Added@react-native/babel-preset@0.76.0-nightly-20240627-TEMP(transitive)
+ Added@react-native/codegen@0.76.0-nightly-20240627-TEMP(transitive)
+ Added@react-native/js-polyfills@0.76.0-nightly-20240627-TEMP(transitive)
+ Added@react-native/metro-babel-transformer@0.76.0-nightly-20240627-TEMP(transitive)
- Removed@react-native/babel-plugin-codegen@0.75.0-rc.2(transitive)
- Removed@react-native/babel-preset@0.75.0-rc.2(transitive)
- Removed@react-native/codegen@0.75.0-rc.2(transitive)
- Removed@react-native/js-polyfills@0.75.0-rc.2(transitive)
- Removed@react-native/metro-babel-transformer@0.75.0-rc.2(transitive)
Updated@react-native/js-polyfills@0.76.0-nightly-20240627-TEMP
Updated@react-native/metro-babel-transformer@0.76.0-nightly-20240627-TEMP