@react-native/metro-config 0.75.0-rc.2 → 0.76.0-nightly-20240627-TEMP

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +0 -18
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11,17 +11,6 @@ Object.defineProperty(exports, "mergeConfig", {
11
11
  },
12
12
  });
13
13
  var _metroConfig = require("metro-config");
14
- /**
15
- * Copyright (c) Meta Platforms, Inc. and affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- *
20
- *
21
- * @format
22
- * @oncall react_native
23
- */
24
-
25
14
  const INTERNAL_CALLSITES_REGEX = new RegExp(
26
15
  [
27
16
  "/Libraries/BatchedBridge/MessageQueue\\.js$",
@@ -45,13 +34,9 @@ const INTERNAL_CALLSITES_REGEX = new RegExp(
45
34
  "/node_modules/scheduler/.+\\.js$",
46
35
  "^\\[native code\\]$",
47
36
  ]
48
- // Make patterns work with both Windows and POSIX paths.
49
37
  .map((pathPattern) => pathPattern.replaceAll("/", "[/\\\\]"))
50
38
  .join("|")
51
39
  );
52
- /**
53
- * Get the base Metro configuration for a React Native project.
54
- */
55
40
  function getDefaultConfig(projectRoot) {
56
41
  const config = {
57
42
  resolver: {
@@ -60,7 +45,6 @@ function getDefaultConfig(projectRoot) {
60
45
  unstable_conditionNames: ["require", "import", "react-native"],
61
46
  },
62
47
  serializer: {
63
- // Note: This option is overridden in cli-plugin-metro (getOverrideConfig)
64
48
  getModulesRunBeforeMainModule: () => [
65
49
  require.resolve("react-native/Libraries/Core/InitializeCore"),
66
50
  ],
@@ -103,8 +87,6 @@ function getDefaultConfig(projectRoot) {
103
87
  },
104
88
  watchFolders: [],
105
89
  };
106
-
107
- // Set global hook so that the CLI can detect when this config has been loaded
108
90
  global.__REACT_NATIVE_METRO_CONFIG_LOADED = true;
109
91
  return (0, _metroConfig.mergeConfig)(
110
92
  _metroConfig.getDefaultConfig.getDefaultValues(projectRoot),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/metro-config",
3
- "version": "0.75.0-rc.2",
3
+ "version": "0.76.0-nightly-20240627-TEMP",
4
4
  "description": "Metro configuration for React Native.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,8 +26,8 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@react-native/js-polyfills": "0.75.0-rc.2",
30
- "@react-native/metro-babel-transformer": "0.75.0-rc.2",
29
+ "@react-native/js-polyfills": "0.76.0-nightly-20240627-TEMP",
30
+ "@react-native/metro-babel-transformer": "0.76.0-nightly-20240627-TEMP",
31
31
  "metro-config": "^0.80.3",
32
32
  "metro-runtime": "^0.80.3"
33
33
  }