Live data from Hacker News

Vite – Next Generation Front End Tooling

main.vitejs.dev

101–110 of 383 posts

Re: Vite – Next Generation Front End Tooling

#101

A lot of folks associate Vite with Vue or React. But the ease of use and overall dev experience in a vanilla TS/JS and web components is fantastic. IMO when paired with Vitest, the setup feels powerful, modern and lean. Would recommend.

Can second that, I use Vite to bundle the assets for a static site, and it… just works. Frontend tooling like I expect it to.

Re: Vite – Next Generation Front End Tooling

#102
post #46

It gave me a pause to think about how it came that I can never really tell what am I looking at anymore. Forget the HN title, which is stupid — what does this landing page tell me? Well, that it's… next gen, and it apparently can catch up with me, which is not much, since I'm not really catching up with what's going on anyway. Also, that it's "tooling". Like IDE, or framework, or maybe a chainsaw. Can't tell. "Gettin…

Lol, I was about to comment here that I opened the docs, read a few pages, and still don't know how this works or how is it different from react for example.

Re: Vite – Next Generation Front End Tooling

#103

Really enjoy working with Vite and it works great with React (many think it’s geared towards Vue, which perhaps it was at one point). Made the switch after some frustrating behavior coming from CRA and having zero flexibility with configuration. As a side note, Vitest is fantastic as well and I highly recommend giving it a try.

Indeed, it never occurred to me to use it with react. Vue vitesse (vite + project template) was so nice it stopped my quest.

And it’s from the guy who built Vue - maybe try that out too? You’d be surprised to get the same feeling there :-)

Re: Vite – Next Generation Front End Tooling

#104
post #46

It gave me a pause to think about how it came that I can never really tell what am I looking at anymore. Forget the HN title, which is stupid — what does this landing page tell me? Well, that it's… next gen, and it apparently can catch up with me, which is not much, since I'm not really catching up with what's going on anyway. Also, that it's "tooling". Like IDE, or framework, or maybe a chainsaw. Can't tell. "Gettin…

I'm not a developer and particularly not a front-end one. I have this problem all the time. Even some of the more "obvious" ones, say, nuxtjs, I have a hard time to get what exactly it offers and why I should use it.

It seems dev has become a subculture forest. Everything is simple if you're in that group and follow the problems and ideas around.

Re: Vite – Next Generation Front End Tooling

#105

Earlier quoted context omitted.

> ...and you never really grasp before moving on to the next thing. Then why do you move on to the next thing? Not a frontend dev, but I notice that a lot of frontend devs seem to be really eager to jump to the next hot thing when it becomes available, even though the thing they are using is still well maintained.

This. As someone who's hung back and not switched to the hot new thing in frontend - I've learned the "old" stuff seems to mature and tends to get better. Look at React, CRA, or Redux Toolkit - they're all so much better (performant, more concise) than the original few releases now!

i dont think you find words like "deprecated" or "sunsetted" in any field as much as front end websh*t.

react has changed a lot. i mean hooks pretty much is a rewrite or rethink of core concepts. nothing wrong with that per se, just that things just move to fast, there is no respect for long term stability and web seems to have a greater share of shiny new thing contrarian hipsters.

Re: Vite – Next Generation Front End Tooling

#106
post #48

Earlier quoted context omitted.

They actually do right in the hero section of the landing page. For me: - fast (very important) - Fully Typed APIs (very important) Just those two points would convince me to try it and I can see it right away on the landing page. At my company, I looked at Vite 6+ months ago and decided it doesn't make sense for us, yet, because of some specific tooling gaps, but it's a tool that I consider "cutting edge" in the fro…

?? 'fast' and 'fully typed APIs' do not explain anything at all. Those are completely generic descriptors. Those are arguably 'differentiators' to the problem they are solving, but they don't first explain the problem they are solving.

> they don't first explain the problem they are solving

I think you're right about this and the "hero text" on their landing page should explain that in one crisp sentence. I imagine the authors of the project just aren't good at this stuff so hope they read this thread and refine the messaging.

Re: Vite – Next Generation Front End Tooling

#107

I'm a happy vite user, but it troubles me when I think about how complicated everything it abstracts has become. It uses rollup for some things, esbuild for others, workbox for my service worker... I switched from webpack to it, and while my config is certainly less complex, I at least could tell you what webpack is doing. Vite is magic. Can I just use esbuild yet?

You can totally just use esbuild, it is extremely well documented and easy to grok. It's very easy to embed in a go app too, but you don't have to do that or be a go programmer to use it (they put it on NPM and gave it a super basic CLI). The docs are great: https://esbuild.github.io/getting-started/

If you're just bundling JS, transforming typescript, maybe doing JSX, etc. then it's just a simple esbuild CLI command to do it. Toss it in a makefile or your CI tooling and you're done.

Re: Vite – Next Generation Front End Tooling

#108
post #68

Despite all negative comments, I (and my team) switched to vite for create-react-app about two months ago, and never looked back. Builds take seconds, developer experience is amazing.a.m.a.

is it compatible with what webpack has

Yes and No.

Yes, it has the same ability like webpack, which allow you to plug the logic you need into the system and change the results to fit your requirement.

No, the config file or the plugins isn't compatible, because it is based on rollup. So you need to find rollup plugins instead.

Re: Vite – Next Generation Front End Tooling

#110

I'm a happy vite user, but it troubles me when I think about how complicated everything it abstracts has become. It uses rollup for some things, esbuild for others, workbox for my service worker... I switched from webpack to it, and while my config is certainly less complex, I at least could tell you what webpack is doing. Vite is magic. Can I just use esbuild yet?

I agree with your sentiment. It's magic until it isn't. When something breaks, you need to often need to dig into the implementation and understand how everything works. This becomes harder and harder when there are more and more layers of code and libraries, many written by completely different people. Seems like frontend is still going in this direction of "magic > simple". I wonder when we'll reach some point where we see a dramatic shift.
Post reply on HN