mirror of
https://github.com/status-im/metro.git
synced 2025-02-28 02:30:29 +00:00
Bring back accidentally reverted changes from 89fc8a4d7f9fa1c23ac235e74731beabb3f9594d
This commit is contained in:
parent
e7d1d95d0d
commit
3ec02183ae
@ -69,7 +69,11 @@ if (options.assetRoots) {
|
|||||||
options.assetRoots = options.assetRoots.split(',');
|
options.assetRoots = options.assetRoots.split(',');
|
||||||
}
|
}
|
||||||
} else {
|
} 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' +
|
console.log('\n' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user