webpack/node-libs-browser

why has this become deprecated?

millsp opened this issue · 8 comments

I see this is still in the docs for webpack. How should we polyfill nodejs apis in the future? @sokra

sokra commented

You can still use the individual polyfills, only the wrapper package has been deprecated as webpack 5 will no longer use it by default.

Thanks! This package was really convenient, though.

Should we add the reason for deprecation in the README too?

Does webpack 5 use the individual polyfills, and if so, is there an up-to-date list of those?

@sokra will it still be possible to assign polyfills to native node.js modules in webpack5 or developers will need to create and maintain such a wrapper package themselves?

Should we add the reason for deprecation in the README too?

☝️ would also like to know why, but figure it had to do with webpack 5?

sokra commented

You don't need to create your own wrapper package. In webpack 5 we show an error message with steps what you need to do when you or some node_modules use some node.js built-in module without browser fallback.

niksy commented

If anyone is looking up-to-date version of polyfills, I’ve created node-stdlib-browser as alternative which is updated and has many other features such as official support for other bundlers.