react-native-webview/metro.config.macos.js

20 lines
530 B
JavaScript
Raw Normal View History

2020-02-12 23:39:11 +00:00
/**
* This cli config is needed for development purposes, e.g. for running
* integration tests during local development or on CI services.
*/
const path = require('path');
const blacklist = require('metro-config/src/defaults/blacklist');
const rnmPath = path.resolve(__dirname, 'node_modules/react-native-macos');
module.exports = {
resolver: {
extraNodeModules: {
'react-native': rnmPath,
},
platforms: ['macos', 'ios', 'android'],
blacklistRE: blacklist([/node_modules\/react-native\/.*/])
},
};