1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
const config = getDefaultConfig(__dirname);
// Add the parent directory to watched folders so Metro can find local packages
config.watchFolders = [
path.resolve(__dirname, '..'),
];
// Configure resolver to handle local packages
config.resolver = {
...config.resolver,
nodeModulesPaths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../'),
],
extraNodeModules: {
'urbit-key-generation': path.resolve(__dirname, '../urbit-key-generation'),
'urbit-ob': path.resolve(__dirname, '../urbit-ob'),
'sigil-js': path.resolve(__dirname, '../sigil-ts'),
},
};
module.exports = config;
|