2022-04-07 09:37:33 +00:00
|
|
|
/**
|
|
|
|
* Metro configuration for React Native
|
|
|
|
* https://github.com/facebook/react-native
|
|
|
|
*
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
|
2022-04-08 13:15:18 +00:00
|
|
|
module.exports = {
|
2022-04-08 11:55:15 +00:00
|
|
|
resolver: {
|
|
|
|
extraNodeModules: {
|
|
|
|
assert: require.resolve('assert'),
|
|
|
|
buffer: require.resolve('buffer'),
|
|
|
|
crypto: require.resolve('crypto-browserify'),
|
|
|
|
stream: require.resolve('stream-browserify'),
|
|
|
|
},
|
|
|
|
},
|
2022-04-07 09:37:33 +00:00
|
|
|
transformer: {
|
|
|
|
getTransformOptions: async () => ({
|
|
|
|
transform: {
|
|
|
|
experimentalImportSupport: false,
|
|
|
|
inlineRequires: true,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
};
|