UNPKG

mixpanel-react-native

Version:

Official React Native Tracking Library for Mixpanel Analytics

22 lines (20 loc) 590 B
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); const path = require('path'); /** * Metro configuration * https://reactnative.dev/docs/metro * * @type {import('@react-native/metro-config').MetroConfig} */ const config = { watchFolders: [ path.resolve(__dirname, '../..'), // Watch the root mixpanel-react-native directory ], resolver: { nodeModulesPaths: [ path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, '../../node_modules'), ], }, }; module.exports = mergeConfig(getDefaultConfig(__dirname), config);