Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

why has this become deprecated? #94

Closed
millsp opened this issue Oct 7, 2019 · 8 comments
Closed

why has this become deprecated? #94

millsp opened this issue Oct 7, 2019 · 8 comments

Comments

@millsp
Copy link

millsp commented Oct 7, 2019

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

@sokra
Copy link
Member

sokra commented Oct 10, 2019

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

@millsp
Copy link
Author

millsp commented Oct 10, 2019

Thanks! This package was really convenient, though.

@millsp millsp closed this as completed Oct 10, 2019
@pcowgill
Copy link

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

@pcowgill
Copy link

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

@vimkin
Copy link

vimkin commented Jun 18, 2020

@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?

@jimmywarting
Copy link

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
Copy link
Member

sokra commented Sep 3, 2020

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
Copy link

niksy commented Feb 9, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants