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 11const path = require ( 'path' ) ;
22const escape = require ( 'escape-string-regexp' ) ;
3+ const { mergeConfig, getDefaultConfig } = require ( '@react-native/metro-config' ) ;
34const exclusionList = require ( 'metro-config/src/defaults/exclusionList' ) ;
45
56const root = path . resolve ( __dirname , '../..' ) ;
@@ -15,7 +16,7 @@ const modules = [
1516 'promise' ,
1617] ;
1718
18- module . exports = {
19+ const config = {
1920 watchFolders : [ root ] ,
2021 transformer : {
2122 getTransformOptions : async ( ) => ( {
@@ -35,3 +36,5 @@ module.exports = {
3536 } , { } ) ,
3637 } ,
3738} ;
39+
40+ module . exports = mergeConfig ( getDefaultConfig ( __dirname ) , config ) ;
Original file line number Diff line number Diff line change 2525 "@babel/core" : " ^7.20.0" ,
2626 "@babel/preset-env" : " ^7.20.0" ,
2727 "@babel/runtime" : " ^7.20.0" ,
28+ "@react-native/metro-config" : " ^0.73.1" ,
2829 "@types/jest" : " ^29.2.1" ,
2930 "@types/react" : " ^18.0.24" ,
3031 "@types/react-native-vector-icons" : " ^6.4.13" ,
You can’t perform that action at this time.
0 commit comments