2021-05-10 13:51:59 +08:00
|
|
|
/**
|
|
|
|
* Metro configuration for React Native
|
|
|
|
* https://github.com/facebook/react-native
|
|
|
|
*/
|
2020-07-07 17:44:10 +08:00
|
|
|
|
2022-08-05 17:57:49 +08:00
|
|
|
const path = require('path');
|
|
|
|
|
2020-07-07 17:44:10 +08:00
|
|
|
module.exports = {
|
2022-08-05 17:57:49 +08:00
|
|
|
// workaround for an issue with symlinks encountered starting with
|
|
|
|
// metro@0.55 / React Native 0.61
|
|
|
|
// (not needed with React Native 0.60 / metro@0.54)
|
|
|
|
resolver: {
|
|
|
|
extraNodeModules: new Proxy(
|
|
|
|
{},
|
|
|
|
{get: (_, name) => path.resolve('.', 'node_modules', name)},
|
|
|
|
),
|
2020-07-07 17:44:10 +08:00
|
|
|
},
|
2022-08-05 17:57:49 +08:00
|
|
|
|
|
|
|
// quick workaround for another issue with symlinks
|
|
|
|
watchFolders: ['.', '..'],
|
2021-05-10 13:51:59 +08:00
|
|
|
};
|