File tree Expand file tree Collapse file tree 3 files changed +404
-21
lines changed Expand file tree Collapse file tree 3 files changed +404
-21
lines changed Original file line number Diff line number Diff line change @@ -84,3 +84,9 @@ android/generated
8484
8585# React Native Nitro Modules
8686nitrogen /
87+
88+
89+
90+
91+ example /android
92+ example /ios
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const { getDefaultConfig } = require ( '@expo/metro-config' ) ;
3- const { withMetroConfig } = require ( 'react-native-monorepo-config' ) ;
43
54const root = path . resolve ( __dirname , '..' ) ;
65
7- /**
8- * Metro configuration
9- * https://facebook.github.io/metro/docs/configuration
10- *
11- * @type {import('metro-config').MetroConfig }
12- */
13- const config = withMetroConfig ( getDefaultConfig ( __dirname ) , {
14- root,
15- dirname : __dirname ,
16- } ) ;
6+ module . exports = ( async ( ) => {
7+ const { withMetroConfig } = await import ( 'react-native-monorepo-config' ) ;
178
18- config . resolver . unstable_enablePackageExports = true ;
9+ /**
10+ * Metro configuration
11+ * https://facebook.github.io/metro/docs/configuration
12+ *
13+ * @type {import('metro-config').MetroConfig }
14+ */
15+ const config = withMetroConfig ( getDefaultConfig ( __dirname ) , {
16+ root,
17+ dirname : __dirname ,
18+ } ) ;
1919
20- module . exports = config ;
20+ config . resolver . unstable_enablePackageExports = true ;
21+
22+ return config ;
23+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments