File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Learn more https://docs.expo.io/guides/customizing-metro
22const { getDefaultConfig } = require ( 'expo/metro-config' ) ;
3- const { getMetroTools, getMonorepoRoot } = require ( "react-native-monorepo-tools" ) ;
4- const path = require ( 'path' ) ;
5-
6- const projectRoot = __dirname ;
7- const monorepoRoot = getMonorepoRoot ( ) ;
8- const metroTools = getMetroTools ( ) ;
93
104/** @type {import('expo/metro-config').MetroConfig } */
11- const config = getDefaultConfig ( projectRoot ) ; // eslint-disable-line no-undef
12-
13- config . resolver . nodeModulesPaths = [
14- path . resolve ( projectRoot , 'node_modules' ) ,
15- path . resolve ( monorepoRoot , 'node_modules' ) ,
16- ] ;
17-
18- // Configure for monorepo - watch the shared workspace
19- config . watchFolders = metroTools . watchFolders ;
20- config . resolver . extraNodeModules = metroTools . extraNodeModules ;
21- config . resolver . blockList = metroTools . blockList ;
5+ const config = getDefaultConfig ( __dirname ) ;
226
237// When enabled, the optional code below will allow Metro to resolve
248// and bundle source files with TV-specific extensions
Original file line number Diff line number Diff line change 3939 "devDependencies" : {
4040 "@react-native-tvos/config-tv" : " ^0.1.4" ,
4141 "@types/react" : " ~19.1.10" ,
42- "react-native-monorepo-tools" : " ^1.2.1" ,
4342 "typescript" : " ~5.9.2"
4443 },
4544 "expo" : {
Original file line number Diff line number Diff line change @@ -3009,7 +3009,6 @@ __metadata:
30093009 react-dom: "npm:19.1.0"
30103010 react-native: "npm:react-native-tvos@0.81-stable"
30113011 react-native-gesture-handler: "npm:~2.28.0"
3012- react-native-monorepo-tools: "npm:^1.2.1"
30133012 react-native-reanimated: "npm:~4.1.1"
30143013 react-native-safe-area-context: "npm:~5.6.0"
30153014 react-native-screens: "npm:~4.16.0"
You can’t perform that action at this time.
0 commit comments