mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
20 lines
535 B
JavaScript
20 lines
535 B
JavaScript
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config')
|
|
|
|
/**
|
|
* Metro configuration
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
*
|
|
* @type {import('metro-config').MetroConfig}
|
|
*/
|
|
const config = {
|
|
resolver: {
|
|
extraNodeModules: {
|
|
// crypto: require.resolve('react-native-quick-crypto'),
|
|
// stream: require.resolve('stream-browserify'),
|
|
buffer: require.resolve('@craftzdog/react-native-buffer'),
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config)
|