code: function js(jsFileMap, scope) {
    const webpackConfig = config.webpack
    const webpackCallback = (err, stats) => {
      if (!err) {
        // eslint-disable-next-line no-console
        console.log(stats.toString({
          assets: true,
          cached: false,
          colors: true,
          children: false,
          errors: true,
          warnings: true,
          version: true,
          modules: false,
          publicPath: true,
        }))
      } else {
        // eslint-disable-next-line no-console
        console.log(err)
      }
    }
  
    webpackConfig.entry = jsFileMap
    webpackConfig.output.path = distPath
  
    if (scope.webpackWatcher) {
      scope.webpackWatcher.close()
      scope.webpackWatcher = null
    }
  
    if (config.isWatch) {
      scope.webpackWatcher = webpack(webpackConfig).watch({
        ignored: /node_modules/,
      }, webpackCallback)
    } else {
      webpack(webpackConfig).run(webpackCallback)
    }
  }
docs: 获取 js 流