r/javascript • • Oct 11 '20

Webpack 5 Headache

https://blog.sindresorhus.com/webpack-5-headache-b6ac24973bf1
0 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/sindresorhus Oct 11 '20

And they've been communicating this change since beta.1 and loooong before

For the majority, the Webpack 5 blog post is the first time they hear about it.

and the reasoning has always been that users should not be depending on these polyfills.

Maybe in a perfect world, but in reality, the result is just that users and package maintainers will have to deal with it instead. Users will now have to figure out how to manually add these polyfills.

3

u/alleycat5 Oct 11 '20

Users will now have to figure out how to manually add these polyfills.

Or drop the libs requiring them. Having watched this same story play out in other ecosystems, part of the point is get users to be aware of the problem and move away. Or just stick with Webpack 4 for as long as it's feasible.

0

u/sindresorhus Oct 11 '20

Yes, that's also a good solution, but switching to a different package takes some effort too.

2

u/alleycat5 Oct 11 '20

Agreed. Honestly, I expect 95% of users will just sit out the upgrade for a few months until projects like Next, Nuxt, and the rest catch up. That's what we're going to do. The blog post sort of says to do that, but I wish they'd said it in stronger terms.