@react-native/metro-config 0.72.7 → 0.72.9
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.
- package/index.js +7 -0
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -46,6 +46,10 @@ function getDefaultConfig(
|
|
|
46
46
|
unstable_conditionNames: ['require', 'import', 'react-native'],
|
|
47
47
|
},
|
|
48
48
|
serializer: {
|
|
49
|
+
// Note: This option is overridden in cli-plugin-metro (getOverrideConfig)
|
|
50
|
+
getModulesRunBeforeMainModule: () => [
|
|
51
|
+
require.resolve('react-native/Libraries/Core/InitializeCore'),
|
|
52
|
+
],
|
|
49
53
|
getPolyfills: () => require('@react-native/js-polyfills')(),
|
|
50
54
|
},
|
|
51
55
|
server: {
|
|
@@ -78,6 +82,9 @@ function getDefaultConfig(
|
|
|
78
82
|
watchFolders: [],
|
|
79
83
|
};
|
|
80
84
|
|
|
85
|
+
// Set global hook so that the CLI can detect when this config has been loaded
|
|
86
|
+
global.__REACT_NATIVE_METRO_CONFIG_LOADED = true;
|
|
87
|
+
|
|
81
88
|
return mergeConfig(
|
|
82
89
|
getBaseConfig.getDefaultValues(projectRoot),
|
|
83
90
|
config,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/metro-config",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.9",
|
|
4
4
|
"description": "Metro configuration for React Native.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"exports": "./index.js",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@react-native/js-polyfills": "^0.72.1",
|
|
14
|
-
"metro-config": "0.76.
|
|
15
|
-
"metro-react-native-babel-transformer": "0.76.
|
|
16
|
-
"metro-runtime": "0.76.
|
|
14
|
+
"metro-config": "0.76.7",
|
|
15
|
+
"metro-react-native-babel-transformer": "0.76.7",
|
|
16
|
+
"metro-runtime": "0.76.7"
|
|
17
17
|
}
|
|
18
18
|
}
|