Socket
Socket
Sign inDemoInstall

@react-native/metro-config

Package Overview
Dependencies
Maintainers
0
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native/metro-config - npm Package Compare versions

Comparing version 0.75.0-rc.2 to 0.76.0-nightly-20240627-TEMP

18

dist/index.js

@@ -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)(

6

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc