react-native-fast-image/react-native-fast-image-exa.../metro.config.js

19 lines
738 B
JavaScript
Raw Normal View History

const path = require('path');
const blacklist = require('metro/src/blacklist');
2018-05-07 15:26:26 +00:00
module.exports = {
extraNodeModules: {
'prop-types': path.resolve(__dirname, 'node_modules/prop-types'),
'react': path.resolve(__dirname, 'node_modules/react'),
'react-native': path.resolve(__dirname, 'node_modules/react-native')
},
getBlacklistRE: () => blacklist([
/[/\\]Users[/\\]dylan[/\\]repos[/\\]react-native-fast-image[/\\]node_modules[/\\]react-native[/\\].*/
]),
2018-05-07 15:26:26 +00:00
getProjectRoots: () => [
// Include current package as project root
path.resolve(__dirname),
// Include symlinked packages as project roots
path.resolve('/Users/dylan/repos/react-native-fast-image')
2018-05-07 15:26:26 +00:00
],
};