mirror of
https://github.com/selfxyz/self.git
synced 2026-02-08 13:25:59 -05:00
24 lines
539 B
JavaScript
24 lines
539 B
JavaScript
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
const path = require('path');
|
|
const extraNodeModules = {
|
|
'common': path.resolve(__dirname + '/../common'),
|
|
};
|
|
const watchFolders = [
|
|
path.resolve(__dirname + '/../common')
|
|
];
|
|
|
|
/**
|
|
* Metro configuration
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
*
|
|
* @type {import('metro-config').MetroConfig}
|
|
*/
|
|
const config = {
|
|
resolver: {
|
|
extraNodeModules,
|
|
},
|
|
watchFolders,
|
|
};
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|