1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-31 13:23:12 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Fix example metro config

This commit is contained in:
sunnylqm
2019-10-05 11:52:25 +08:00
parent 4f41e428cb
commit af9b500260
2 changed files with 87 additions and 53 deletions

View File

@@ -2,10 +2,9 @@ const path = require('path');
const extraNodeModules = {
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
'react-native-update': path.resolve(__dirname, '../..'),
'@babel/runtime': path.resolve(__dirname, 'node_modules/@babel/runtime'),
};
const blacklistRegexes = [
/react-native-update[\/\\]node_modules[\/\\]react-native[\/\\].*/,
];
const watchFolders = [path.resolve(__dirname, '../..')];
module.exports = {
@@ -19,9 +18,6 @@ module.exports = {
},
resolver: {
extraNodeModules,
blacklistRE: require('metro-config/src/defaults/blacklist')(
blacklistRegexes,
),
},
watchFolders,
};