chore(example): update metro.config.
This commit is contained in:
parent
fead1627a7
commit
c49fb0e142
@ -3,13 +3,19 @@
|
|||||||
* https://github.com/facebook/react-native
|
* https://github.com/facebook/react-native
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
transformer: {
|
// workaround for an issue with symlinks encountered starting with
|
||||||
getTransformOptions: async () => ({
|
// metro@0.55 / React Native 0.61
|
||||||
transform: {
|
// (not needed with React Native 0.60 / metro@0.54)
|
||||||
experimentalImportSupport: false,
|
resolver: {
|
||||||
inlineRequires: true,
|
extraNodeModules: new Proxy(
|
||||||
},
|
{},
|
||||||
}),
|
{get: (_, name) => path.resolve('.', 'node_modules', name)},
|
||||||
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// quick workaround for another issue with symlinks
|
||||||
|
watchFolders: ['.', '..'],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user