weixin_39665379
weixin_39665379
2020-11-29 08:56

Patch: Using inherits package instead of node inherits.

Webpack (and react-native) doesn't support node globals / global modules. This pull request removes the util global dependency and replaces it with inherits which implements inherits just as node does, but works without globals.

Note: I am sure about the version range of inherits to be used. Used "^2.0.4" for the moment.

该提问来源于开源项目:rvagg/through2

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

9条回答