chore(deps): Update denpendency.
This commit is contained in:
@@ -1,28 +1,15 @@
|
||||
// metro.config.js
|
||||
//
|
||||
// with multiple workarounds for this issue with symlinks:
|
||||
// https://github.com/facebook/metro/issues/1
|
||||
//
|
||||
// with thanks to @johnryan (<https://github.com/johnryan>)
|
||||
// for the pointers to multiple workaround solutions here:
|
||||
// https://github.com/facebook/metro/issues/1#issuecomment-541642857
|
||||
//
|
||||
// see also this discussion:
|
||||
// https://github.com/brodybits/create-react-native-module/issues/232
|
||||
|
||||
const path = require('path')
|
||||
/**
|
||||
* Metro configuration for React Native
|
||||
* https://github.com/facebook/react-native
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
// 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) }
|
||||
)
|
||||
transformer: {
|
||||
getTransformOptions: async () => ({
|
||||
transform: {
|
||||
experimentalImportSupport: false,
|
||||
inlineRequires: true,
|
||||
},
|
||||
}),
|
||||
},
|
||||
|
||||
// quick workaround for another issue with symlinks
|
||||
watchFolders: ['.', '..']
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user