mirror of https://github.com/status-im/metro.git
This commit is contained in:
parent
8dc2c30a18
commit
4db001a925
|
@ -69,7 +69,11 @@ if (options.assetRoots) {
|
|||
options.assetRoots = options.assetRoots.split(',');
|
||||
}
|
||||
} else {
|
||||
options.assetRoots = [path.resolve(__dirname, '..')];
|
||||
if (__dirname.match(/node_modules\/react-native\/packager$/)) {
|
||||
options.assetRoots = [path.resolve(__dirname, '../../..')];
|
||||
} else {
|
||||
options.assetRoots = [path.resolve(__dirname, '..')];
|
||||
}
|
||||
}
|
||||
|
||||
console.log('\n' +
|
||||
|
|
Loading…
Reference in New Issue