I´m trying to blacklist some folders on the packager, by providing
"rnCliPath" : "./rn-cli.config.js",
at app.json. File rn-cli.config.js has following content:
var blacklist = require('metro-bundler/src/blacklist');
console.log("STARTING!");
var config = {
getBlacklistRE(){
return blacklist([
/node_modules\/react-native-web\/.*/,
/functions\/.*/,
/scripts\/.*/,
/web\/.*/
]);
}
};
module.exports = config;
By doing this, exp (and also XDE) get stuck at message “Starting React Native packager…”. Log “STARTING!” is displayed anyway, so config is file is read. Even fails setting this on rn-cli-config.js
module.exports = {};
By removing the “rnCliPath”, all works ok again. Any suggestion? Thx in advance