How to Polyfill node core modules in webpack 5

asked5 years ago
last updated3 years ago
viewed386.7k times
Up Vote315Down Vote

webpack 5 no longer do auto-polyfilling for node core modules. How to fix it please?

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.