Live data from Hacker News

Webpack 5

webpack.js.org

1–10 of 182 posts

Re: Webpack 5

#2
"There is a good chance that upgrading fails and you would need to give it a second or 3rd try."

Sad that this has almost become the norm when developing in the modern javascript ecosystem. I dread touching those projects and creating one even more because stuff just rots away and your app might break in days, weeks or If you are lucky months. I'm sure there are better developers out there that can handle all of this and know how to avoid it, but a bozo like me does not. This is actually causing me stress irl.

Re: Webpack 5

#4
I’m scrolling and scrolling waiting for a paragraph that tries to sell me on why I’d bother and risk upgrading. I think the best I got were patch notes.

Any good reason to upgrade?

Re: Webpack 5

#5

I’m scrolling and scrolling waiting for a paragraph that tries to sell me on why I’d bother and risk upgrading. I think the best I got were patch notes. Any good reason to upgrade?

Per https://webpack.js.org/blog/2020-10-10-webpack-5-release/#ge... :

- Improve build performance with Persistent Caching.

- Improve Long Term Caching with better algorithms and defaults.

- Improve bundle size with better Tree Shaking and Code Generation.

- Improve compatibility with the web platform.

- Clean up internal structures that were left in a weird state while implementing features in v4 without introducing any breaking changes.

- Prepare for future features by introducing breaking changes now, allowing us to stay on v5 for as long as possible

Re: Webpack 5

#6

I’m scrolling and scrolling waiting for a paragraph that tries to sell me on why I’d bother and risk upgrading. I think the best I got were patch notes. Any good reason to upgrade?

I'm excited for async module loading for web assembly.

Re: Webpack 5

#7
post #2

"There is a good chance that upgrading fails and you would need to give it a second or 3rd try." Sad that this has almost become the norm when developing in the modern javascript ecosystem. I dread touching those projects and creating one even more because stuff just rots away and your app might break in days, weeks or If you are lucky months. I'm sure there are better developers out there that can handle all of this…

Oh thats because you are missing the specific version manager for each part of your build toolchain

And dont forget to make a script that automatically sets the right versions of npm, webpack, and python all at once!

This is fine, I am okay with the events that are unfolding currently.

Re: Webpack 5

#8
post #2

"There is a good chance that upgrading fails and you would need to give it a second or 3rd try." Sad that this has almost become the norm when developing in the modern javascript ecosystem. I dread touching those projects and creating one even more because stuff just rots away and your app might break in days, weeks or If you are lucky months. I'm sure there are better developers out there that can handle all of this…

The way you avoid problems with a .0.0 release is by not upgrading to a .0.0 release. You would have to do that by hand; npm and yarn have been pinning major versions for a long time now, so that upgrade only happens when you do it by hand. So if you don't want to deal with breaking changes, all you have to do is nothing. Meantime webpack 4 is not going anywhere.

Re: Webpack 5

#9
post #2

"There is a good chance that upgrading fails and you would need to give it a second or 3rd try." Sad that this has almost become the norm when developing in the modern javascript ecosystem. I dread touching those projects and creating one even more because stuff just rots away and your app might break in days, weeks or If you are lucky months. I'm sure there are better developers out there that can handle all of this…

It helps to pin dependencies so that only the exact specified version is downloaded/installed/used.

I recently updated the dependencies of a frontend project. `vue-apollo` from version 3.0.3 to 3.0.4 had a breaking change. The discussion in the commit on GitHub proposed to release it as v4. But in the dev’s mind it was a fix so he released it as a patch version.

Re: Webpack 5

#10
post #2

"There is a good chance that upgrading fails and you would need to give it a second or 3rd try." Sad that this has almost become the norm when developing in the modern javascript ecosystem. I dread touching those projects and creating one even more because stuff just rots away and your app might break in days, weeks or If you are lucky months. I'm sure there are better developers out there that can handle all of this…

Oh thats because you are missing the specific version manager for each part of your build toolchain And dont forget to make a script that automatically sets the right versions of npm, webpack, and python all at once! This is fine, I am okay with the events that are unfolding currently.

If you have multiple projects of almost any language that are stuck on different versions, you basically end up with the same problem and solution.

I will definitely keep my version managers, thank you very much.

Post reply on HN