react-native-multibundler icon indicating copy to clipboard operation
react-native-multibundler copied to clipboard

buz.config.js 中打业务包的时候,为什么要过滤source-map等依赖?

Open 0x1428571429 opened this issue 5 years ago • 0 comments

  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.

0x1428571429 avatar Apr 22 '20 06:04 0x1428571429