webpack < 5 used to include polyfills for node.js core modules by default
时间: 2024-05-31 11:09:04 浏览: 164
node-polyfill-webpack-plugin:Webpack中的Polyfill Node.js核心模块
4星 · 用户满意度95%
Yes, that is correct. Prior to version 5, webpack had a feature called the "Node.js Polyfills" which included polyfills for Node.js core modules such as `path`, `fs`, and `util`. These polyfills allowed developers to use these modules in the browser without having to worry about compatibility issues. However, starting from version 5, webpack no longer includes these polyfills by default and requires them to be explicitly imported or provided by the user.
阅读全文