Why is Everyone Using Vite?

  Рет қаралды 70,198

Awesome

Awesome

Жыл бұрын

A quick look at Vite JS.
💬 Topics:
- JavaScript bundlers;
- Compiling and Transpiling;
- ES Modules;
- Working with Vite;
- Server side rendering.
#javascript

Пікірлер: 82
@adidibrani
@adidibrani Жыл бұрын
I think the speed alone is the winning factor. CRA takes longer than my wife takes to dress up
@seveneyedlamb
@seveneyedlamb Жыл бұрын
lol
@karasira2696
@karasira2696 Жыл бұрын
🤣🤣🤣
@nonstopper
@nonstopper Жыл бұрын
Don’t be silly. No one who uses CRA Has a wife
@ashish_prajapati_tr
@ashish_prajapati_tr Жыл бұрын
😂
@HiImKyle
@HiImKyle Жыл бұрын
No one should be using CRA anyway
@arpitdubey5938
@arpitdubey5938 Жыл бұрын
I still remember working on a react project in early 2019, the codebase was large the the local development was slow. I turned off the typechecking in the local environment and relied solely on the vs code ide to help me with the type checking with the good old red squglies, working that way with the code was a breeze.
@dealloc
@dealloc Жыл бұрын
Right. You want typechecking as a separate step from watching, for CI purposes. Let the CI catch errors you didn't catch in your IDE.
@SamualN
@SamualN Жыл бұрын
I treat the type checker like a linter. I wouldn't run the linter on every file change during dev
@emmanuelgenga7421
@emmanuelgenga7421 Жыл бұрын
For a beginner with frameworks this is an interesting take
@anunonim
@anunonim Жыл бұрын
I appreciate a lot the quality of your videos, man! What do you think of React docs hiding Vite inside a little corner?
@awesome-coding
@awesome-coding Жыл бұрын
Thank you for your feedback! I believe they are fighting a loosing battle... I do most of my work in the React ecosystem, and I know everybody hates CRA. Don't get me wrong, CRA was great for a long time, since it was a pain to set up react projects before that. However, nobody can argue that Vite is a way better option. I honestly don't understand why they are just briefly mentioning it in the docs.. it's not like most devs don't know the alternatives. I guess it is a bit weird for them to directly push a tool coming from the Vue space maybe?
@tuyindeme4462
@tuyindeme4462 Жыл бұрын
Vite (French word for "quick", pronounced /vit/, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts: A dev server that provides rich feature enhancements over native ES modules, for example extremely fast Hot Module Replacement (HMR). A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production.
@SebaGomez
@SebaGomez Жыл бұрын
Thanks! [ESP] Excelente vídeo, muchas gracias.
@awesome-coding
@awesome-coding Жыл бұрын
Glad you find it useful!Thank you for the kind words!
@rahuljoshi8331
@rahuljoshi8331 8 ай бұрын
How to migrate an enterprise level application built with creat-react-app to vite.
@Steve-Richter
@Steve-Richter Жыл бұрын
I cannot get the chrome dev tools debugger to work correctly in my vite/vue/typescript projects The source maps do not align breakpoints correctly.
@laurapeterson146
@laurapeterson146 Жыл бұрын
Nice explanation. What did you use to do the animation on the video (like the moving hand icon at 1:07 for example)? I know it's very simple and people have been doing that a lot, but I'm just curious. Is it Premiere Pro or After Effects? Thanks.
@awesome-coding
@awesome-coding Жыл бұрын
Hey! I'm using Premiere Rush (which lacks some of the more advanced animation stuff you see on other videos, but does the job for me). PremierePro does wonders for animations in videos.
@laurapeterson146
@laurapeterson146 Жыл бұрын
@@awesome-coding Thank you.
@TariqSajid
@TariqSajid Жыл бұрын
please make a video on how to migrate large react script project to vite with react script env
@filipkovac767
@filipkovac767 Жыл бұрын
@Avesome The SSR example you showed suffers from flash of unstyled content during development, bcs CSS link tags are not populated. I haven't found solution for that. Has anyone? There is no mention of that in docs and it seems like the problem is just ignored.
@awesome-coding
@awesome-coding Жыл бұрын
@filipkovac767 Thank you for outlining this. I will look into the topic further, and come up with a more detailed video on the matter since it is a pretty interesting subject.
@Ivan-wm6gm
@Ivan-wm6gm Жыл бұрын
For react devs do you still use Vite or just use nextjs for personal projects? and why?
@kevinkelche8478
@kevinkelche8478 Жыл бұрын
Nextjs (since its full stack) and you can implement Multiple Architectures such as SSR , SPA or ISR.
@okie9025
@okie9025 Жыл бұрын
In my projects I always make a separate REST API backend using some other framework/language, so on the frontend I use NextJS as a sort of "proxy" to the backend API. NextJS does the heavy work of making your app better for SEO and turning it into an SSR website rather than an SPA.
@awesome-coding
@awesome-coding Жыл бұрын
It really depends on the use case. Next JS is probably the most common React meta-framework these days, but if you need to build a plain and simple SPA without too many architectural constraints I'd still go with Vite + React.
@ercansahin8430
@ercansahin8430 10 күн бұрын
I am curious about ssg and ssr best practices with vite. I use Nextjs just because of the partial ssg and i am not happy with lack of control. Is Vite has more powerful ssg do you know anything about it?
@ADRECT
@ADRECT 9 ай бұрын
awesome
@nate32396
@nate32396 10 ай бұрын
Just converted my CRA app to vite. It was tedious but so worth it. Especially since CRA is all but deprecated.
@awesome-coding
@awesome-coding 10 ай бұрын
What where the main pain points in the process?
@nate32396
@nate32396 10 ай бұрын
@@awesome-coding getting vite to recognize the contents of my public folder. It wasn’t hard. Just took some time.
@gabrielmalek7575
@gabrielmalek7575 Жыл бұрын
Vite is awesome I talk about it all the time lol
@xxXAsuraXxx
@xxXAsuraXxx 7 ай бұрын
Note that Rspack is also coming up, compatible with webpack and also will make module federation as its first class citizen!
@awesome-coding
@awesome-coding 7 ай бұрын
Thanks for mentioning it! I'll look into it!
@VeaceslavBARBARII
@VeaceslavBARBARII 3 ай бұрын
3:28 Have you tried to write plugins for Vite?
@vaisakhkm783
@vaisakhkm783 Жыл бұрын
Waiting for next 10 exciting build tool to come out...!!!!
@awesome-coding
@awesome-coding Жыл бұрын
😂 I can see it happen
@Daijyobanai
@Daijyobanai Жыл бұрын
Shouldn't have to wait long, probably around a week from now.
@vasiovasio
@vasiovasio 7 ай бұрын
​@@Daijyobanaithe worst thing is that you are not even sarcastic, but telling facts...
@compilejs110
@compilejs110 Жыл бұрын
I love vite
@kurtfth
@kurtfth Жыл бұрын
nobody mention that vite has huge performans penalty development on windows with relatively large codebase like 1k+ files. if it cannot handle by lazy loading, even with slower ssd😢
@awesome-coding
@awesome-coding Жыл бұрын
Sorry to hear that. I'm not doing any work on Windows, so I appreciate you mentioning this!
@eli-sv
@eli-sv Жыл бұрын
Vite is lit 😂
@jwoods9659
@jwoods9659 7 ай бұрын
Vite is hard to use and does not give clear errors it's been a pain to buidl my project with i will stick with webpack.
@drinkintea1572
@drinkintea1572 Жыл бұрын
This dude's voice reminds me of LowSpecGamers idk why
@awesome-coding
@awesome-coding Жыл бұрын
I'm not sure if that's a good thing or not, but thanks! :))
@raenastra
@raenastra 10 ай бұрын
Speed and TS support are nice, but Vite is the reason why I can't easily set breakpoints in my Svelte projects or use WASM in Solid projects :(
@awesome-coding
@awesome-coding 10 ай бұрын
I think you might be one step ahead of the bulk of the regular devs with your WASM use case. Not being able to breakpoint in Svelte seems weird though.
@raenastra
@raenastra 10 ай бұрын
@@awesome-coding maybe it's been fixed, but last I checked, it's got some issues with source maps that makes it difficult to set breakpoints
@anfytrion
@anfytrion Жыл бұрын
I'll also give you a comment, here it is...
@awesome-coding
@awesome-coding Жыл бұрын
I appreciate it!✌️
@RolandAyala
@RolandAyala Жыл бұрын
+1 vite is awesome (have used w/ several projects, including svelte-kit, solid-start, and qwik-city), but still no match for nextjs dx w/ stateful/live hmr updates, which is gold when iterating on ux.
@awesome-coding
@awesome-coding Жыл бұрын
I agree. However, one of the many strengths of Vite is it's versatility. As you said, you can use it with pretty much any type of stack.
@mawill432
@mawill432 10 ай бұрын
give us more..
@luisbrazilva
@luisbrazilva 11 ай бұрын
I get it. It's fast but why is everyone ignoring the huge security risk of exposing your API connections and key because it serves the JSX files in the network activity tab without masking them or encoding them.
@awesome-coding
@awesome-coding 11 ай бұрын
Interesting. Could you elaborate, please?
@nikilk
@nikilk 11 ай бұрын
I think what Luis was referring to is the ES modules being shipped as such during development as no bundling happens at that point. The code at development phase is as clear and well maintained as the developer wrote it. Hence the lack of obfuscation that bundlers apply was the security risk he intended. This point is however mute as for any release vite actually bundles stuff.
@luisbrazilva
@luisbrazilva 11 ай бұрын
@@nikilk if you inspect the bundle created you will see the api key and anything you store in env exposed. Five what it’s worth, this is something CRA does as well. But exposing the entire JSX structure gives context to how the params were built to harvest from the api and as mentioned, you even have the key. I can’t do screenshots in this thread
@Pareshbpatel
@Pareshbpatel 4 ай бұрын
{2023-12-14}
@RudyRdx
@RudyRdx Жыл бұрын
Are You AI ?
@awesome-coding
@awesome-coding Жыл бұрын
Aren't we all?
@Daijyobanai
@Daijyobanai Жыл бұрын
@@awesome-coding I'm all A and not much I.
@RudyRdx
@RudyRdx Жыл бұрын
@@awesome-coding dead lock .....
@samarnagar9699
@samarnagar9699 9 ай бұрын
its VAITEE
@awesome-coding
@awesome-coding 9 ай бұрын
VIUUT
@sorinuka
@sorinuka Жыл бұрын
Vite is getting popular, right?
@awesome-coding
@awesome-coding Жыл бұрын
Yes it is!
@pourlamouvance
@pourlamouvance 9 ай бұрын
Typescript is the reason i don't use vite
@awesome-coding
@awesome-coding 9 ай бұрын
Could you explain this please? Vite is ore than a compiler if you are comparing them like that.
@pourlamouvance
@pourlamouvance 9 ай бұрын
Links get deleted, search greenest programming languages and Ryan Dahl talking about typescript in deno as a first regret
@SnazzieTV
@SnazzieTV Жыл бұрын
why people keep pronouncing it veet(f-eet) instead of vite (l-ite)
@twinlamp
@twinlamp Жыл бұрын
Go to 1:05 and pause. Read the first sentence on the page.
@awesome-coding
@awesome-coding Жыл бұрын
🇫🇷🇫🇷🇫🇷
Do you REALLY need SSR?
18:15
Theo - t3․gg
Рет қаралды 153 М.
Vite Crash Course | Faster Alternative To CRA
16:24
Traversy Media
Рет қаралды 177 М.
What Happens If You Trap Smoke In a Ball?
00:58
A4
Рет қаралды 16 МЛН
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 2,8 МЛН
БРАВЛЕРЫ ОТОМСТИЛИ МАТЕРИ😬#shorts
00:26
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 299 М.
Do Signals replace RxJS Observables?
5:41
JS 2 brain
Рет қаралды 4,4 М.
Vite для быстрой разработки и сборки приложения
10:49
Михаил Непомнящий
Рет қаралды 59 М.
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 255 М.
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 243 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 265 М.
Why Is Lua So Popular?
8:03
Awesome
Рет қаралды 78 М.
Never install locally
5:45
Coderized
Рет қаралды 1,5 МЛН
Angular’s Third Era is…weird
21:41
Theo - t3․gg
Рет қаралды 84 М.
What Happens If You Trap Smoke In a Ball?
00:58
A4
Рет қаралды 16 МЛН