react-native-multibundler
react-native-multibundler copied to clipboard
buz.config.js 中打业务包的时候,为什么要过滤source-map等依赖?
const path = module['path']
if (path.indexOf("__prelude__") >= 0 ||
path.indexOf("/node_modules/react-native/Libraries/polyfills") >= 0 ||
path.indexOf("source-map") >= 0 ||
path.indexOf("/node_modules/metro/src/lib/polyfills/") >= 0) {
return false;
}
因为我们业务包中出现了调用source-map,不知道为什么要过滤这些js.