FredKSchott / rollup-plugin-polyfill-node

A modern Node.js polyfill for your Rollup bundle.
Other
175 stars 55 forks source link

The return value of a function networkInterfaces and getNetworkInterfaces may lead to errors #35

Closed Fog3211 closed 2 years ago

Fog3211 commented 2 years ago

Some libraries (like address)may use the return value of os.networkInterfaces(), if it is undefined, it may cause an error

image https://github.com/calvinmetcalf/rollup-plugin-node-builtins/blob/master/src/es6/os.js#L81

Hope to be modified to be consistent with this。 os-browserify

Fog3211 commented 2 years ago

36

FredKSchott commented 2 years ago

Fixed in #36