rn-waku-relay-poc/metro.config.js

26 lines
535 B
JavaScript
Raw Normal View History

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