webpack5出现process is not defined

webpack5开始不再polyfill node内置模块,需要手动引入

https://stackoverflow.com/questions/65018431/webpack-5-uncaught-referenceerror-process-is-not-defined

https://webpack.docschina.org/configuration/resolve/#resolvefallback

https://viglucci.io/how-to-polyfill-buffer-with-webpack-5

posted @ 2022-12-24 22:47  zhishaofei3  阅读(390)  评论(0编辑  收藏  举报