1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
2019-10-04 18:38:54 +08:00

28 lines
636 B
JavaScript

const path = require('path');
const extraNodeModules = {
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
};
const blacklistRegexes = [
/react-native-update[\/\\]node_modules[\/\\]react-native[\/\\].*/,
];
const watchFolders = [path.resolve(__dirname, '../..')];
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
resolver: {
extraNodeModules,
blacklistRE: require('metro-config/src/defaults/blacklist')(
blacklistRegexes,
),
},
watchFolders,
};