File tree Expand file tree Collapse file tree 3 files changed +395
-1
lines changed Expand file tree Collapse file tree 3 files changed +395
-1
lines changed Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
const escape = require ( 'escape-string-regexp' ) ;
3
+ const { mergeConfig, getDefaultConfig } = require ( '@react-native/metro-config' ) ;
3
4
const exclusionList = require ( 'metro-config/src/defaults/exclusionList' ) ;
4
5
5
6
const root = path . resolve ( __dirname , '../..' ) ;
@@ -15,7 +16,7 @@ const modules = [
15
16
'promise' ,
16
17
] ;
17
18
18
- module . exports = {
19
+ const config = {
19
20
watchFolders : [ root ] ,
20
21
transformer : {
21
22
getTransformOptions : async ( ) => ( {
@@ -35,3 +36,5 @@ module.exports = {
35
36
} , { } ) ,
36
37
} ,
37
38
} ;
39
+
40
+ module . exports = mergeConfig ( getDefaultConfig ( __dirname ) , config ) ;
Original file line number Diff line number Diff line change 25
25
"@babel/core" : " ^7.20.0" ,
26
26
"@babel/preset-env" : " ^7.20.0" ,
27
27
"@babel/runtime" : " ^7.20.0" ,
28
+ "@react-native/metro-config" : " ^0.73.1" ,
28
29
"@types/jest" : " ^29.2.1" ,
29
30
"@types/react" : " ^18.0.24" ,
30
31
"@types/react-native-vector-icons" : " ^6.4.13" ,
You can’t perform that action at this time.
0 commit comments