You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
567 B

  1. const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
  2. const path = require('path');
  3. /**
  4. * Metro configuration
  5. * https://reactnative.dev/docs/metro
  6. *
  7. * @type {import('metro-config').MetroConfig}
  8. */
  9. const config = {
  10. watchFolders: [
  11. path.resolve(__dirname, '../../node_modules'),
  12. path.resolve(__dirname, '../../packages'),
  13. ],
  14. resolver: {
  15. unstable_enablePackageExports: true,
  16. unstable_conditionNames: ['browser', 'require', 'react-native'],
  17. },
  18. };
  19. module.exports = mergeConfig(getDefaultConfig(__dirname), config);