Live data from Hacker News

Vite 3.0

vitejs.dev

91–100 of 202 posts

Re: Vite 3.0

#91
post #31

> We decided to release a new Vite major at least every year Isn’t this exhausting? Is it impossible to design good contracts without having to break compatibility every year? In most other language ecosystems it would convey incompetence.

Most apps I've seen can upgrade to Vite 3 without any changes. While there are breaking changes, there aren't a lot and they're not very big.

Re: Vite 3.0

#92

Quoted post unavailable.

Major version bump !== Your app breaks

According to semantic versioning, a major version indicates breaking changes, which is always bad from a users perspective.

Most projects don't really use semver anymore though, which is why this association seems to be going away

Re: Vite 3.0

#93
post #73

Earlier quoted context omitted.

1. I upgraded a huge application from Vite 2 to Vite 3 with literally no change. 2. Nobody forces you to upgrade, that's how semver works.

Re 2.: unless they plan to simultaneously support multiple major versions, they kind of do. Maybe not right away, but once the main branch of development is based on the new major version, that's the highest priority moving forward. All older versions might get backported bug fixes, but that's it.

op is just bad mouthing by implying that this release magically broke their app overnight.

Re: Vite 3.0

#94
I can't keep up with this stuff anymore. As a former "full stack" dev, I just quit the frontend part altogether and I'm now just focusing on the backend. It's just too much and changing too fast.

Re: Vite 3.0

#95

I had no idea so many other frameworks are using Vite as their default. Event server-side frameworks are picking it up! Has Webpack really been dethroned as the go-to bundler?

Webpack hasn't been dethroned, but it certainly has a competitor.

If you start a new project now and use Webpack, I can't understand it.

Re: Vite 3.0

#96

Quoted post unavailable.

because maintaining backwards compatibillity is an antipattern, its producing so much needless global complexity in our tools for everyone forever, just to save some effort when upgrading ...

Re: Vite 3.0

#97

I know that this is all about Vite but if you like Vite, I want to give a shout-out to Parcel[0] as well. Its a very similar philosophy, built on top of SWC[1] and has its own set of great optimizations. I've regularly gotten smaller overall bundle sizes with parcel than with Vite (though that gap is very narrow now) in my experience. I wish Parcel got more mention, especially in the React community (where it shines…

Parcel has been praised on here many times when it originally came out. I was an avid user but the nail in the coffin was the horrid and long release of v2 which took forever, the docs were in disarray, and overall just left a bad taste in my mouth. I also think there was some common issue where v1 didn’t support some version of postcss for quite some time and I and many others jumped ship to vite.

I really liked Parcel v1, but v2 completely broke watch for me, which is kind of a dealbreaker these days. I'm currently pretty happy with webpack v5, but definitely have vite on my list to check out.

Re: Vite 3.0

#99

I had no idea so many other frameworks are using Vite as their default. Event server-side frameworks are picking it up! Has Webpack really been dethroned as the go-to bundler?

> Has Webpack really been dethroned as the go-to bundler?

At this point yes. I'm sure there are still some things that you will need Webpack for, but in my experience I have yet to find one of those instances. Vite is not just way way way faster than Webpack, it's also way simpler.

Configuring a React project from scratch with Webpack is an undertaking, especially if you're not seasoned with Webpack configurations. Vite on the other hand is super simple to setup, I typically don't even reach for the starters that vite offers because it's just as easy to do an `npm init -y` and then install it manually.

I work for a web dev agency and we have migrated all of our existing projects to Vite, and advised any new projects to not use Webpack unless there is a very specific reason and other solutions have been exhausted.

Re: Vite 3.0

#100
post #61
post #39

Earlier quoted context omitted.

That’s what semantic versioning is: https://semver.org/ https://docs.npmjs.com/about-semantic-versioning

What an asinine interpretation. No thanks.

Care to explain why you do believe it is "an asinine interpretation"?
Post reply on HN