Webpack 5 no longer ships polyfills for nodejs builtin modules, and recommends using this module if a module need util, and the module README does say it should work in a browser. However, the module causes a exception when importing the resulting bundle in the browser:
vendor.2cdb7b12f7e46077b4bd.js:92301 Uncaught ReferenceError: process is not defined
This is causes by this code, which expects to be able to use the nodejs process module without importing it:
|
if (process.env.NODE_DEBUG) { |