Nenhuma descrição

metro.config.macos.js 530B

1234567891011121314151617181920
  1. /**
  2. * This cli config is needed for development purposes, e.g. for running
  3. * integration tests during local development or on CI services.
  4. */
  5. const path = require('path');
  6. const blacklist = require('metro-config/src/defaults/blacklist');
  7. const rnmPath = path.resolve(__dirname, 'node_modules/react-native-macos');
  8. module.exports = {
  9. resolver: {
  10. extraNodeModules: {
  11. 'react-native': rnmPath,
  12. },
  13. platforms: ['macos', 'ios', 'android'],
  14. blacklistRE: blacklist([/node_modules\/react-native\/.*/])
  15. },
  16. };