score:5

Accepted answer
plugins: [
  new webpack.ProvidePlugin({
    fetch: 'exports-loader?self.fetch!whatwg-fetch',
    request: [path.resolve('app/utils/request.js'), 'default']
  })
]

Related Query

More Query from same tag