Vite in 100 Seconds

  Рет қаралды 793,177

Fireship

Fireship

2 жыл бұрын

Vite is a JavaScript build tool that makes it faster and easier to build web applications. It's similar to tools like Webpack, but relies on modern browser features like ES Modules to simplify and speed-up the build process.
#javascript #webdev #100SecondsOfCode
🔗 Resources
Vite Docs vitejs.dev
Vite SSR Plugin vite-plugin-ssr.com
Learn more about JS Bundlers • Module Bundlers Explai...
🔥 Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- What is Vite.js?
- Vite vs Webpack
- Who created Vite?
- How does Vite work?
- Module Bundlers in JavaScript

Пікірлер: 575
@mariosebastian6480
@mariosebastian6480 2 жыл бұрын
can you do a video that explains server side rendering vs client side rendering vs static site regeneration vs incremental generation? Static sites vs client rendered sites are easy to understand, but the in between of all the watering/hydration generations are confusing.
@lahcencodery
@lahcencodery 2 жыл бұрын
Wish more likes to make this comment on top as I my self know these kind of stuff but want to see it on 🔥 🚢
@MrFeliks912
@MrFeliks912 2 жыл бұрын
Fireship is so awesome, I can't wait to look at it. Visual applications are exactly what we're building right now, and yet we don't know which stack to choose...
@ChaoticNeutralMatt
@ChaoticNeutralMatt 2 жыл бұрын
Honestly this was confusing but I finally got what I was working on working with some help from several fireship videos.
@eddiesimon326
@eddiesimon326 2 жыл бұрын
Yes please
@himanshutripathi7441
@himanshutripathi7441 2 жыл бұрын
SSSSSS pls do it. Maybe a 9 minute video...... Go GO GO
@kurshadqaya1684
@kurshadqaya1684 2 жыл бұрын
The man who reads our mind.
@arvind6007
@arvind6007 2 жыл бұрын
Yeah😂
@lalitkumarsingh7225
@lalitkumarsingh7225 2 жыл бұрын
Like literally
@kigarde
@kigarde 2 жыл бұрын
😂True
@samman5980
@samman5980 2 жыл бұрын
I was literally searching his channel for this yesterday.
@vaisakhkm783
@vaisakhkm783 2 жыл бұрын
@@samman5980 i had searched this a long before, that dqy he put a video about module bundlers...
@mountainslopes
@mountainslopes 2 жыл бұрын
I love that Svelte Kit uses Vite under the hood. Makes for such a good developer experience
@michaelpumo83
@michaelpumo83 2 жыл бұрын
...and Vite uses Rollup...created by Rich Harris who also created Svelte. Symbiotic or what.
@vikingthedude
@vikingthedude 2 жыл бұрын
Yeah it’s like a rich-evan-rich sandwich
@atljBoss
@atljBoss 2 жыл бұрын
whats the best way to init a svelte project with typescript
@abiodundacosta6250
@abiodundacosta6250 2 жыл бұрын
Love it 👌🏼
@HappyGick
@HappyGick 2 жыл бұрын
I thought Svelte Kit used Snowpack. I had read something like that on one of their blogs.
@saketaryan2227
@saketaryan2227 2 жыл бұрын
Evan you is really a gift to the javascript world . Full respect for this guy !
@nyashachiroro2531
@nyashachiroro2531 2 жыл бұрын
Now I use Vite for everything, even vanilla HTML, CSS and JS. Its amazing. Great video by the way.
@Technoph1le
@Technoph1le Жыл бұрын
You need to choose vanilla in options.
@akj3344
@akj3344 Жыл бұрын
What do you build with vanilla js though?
@coldestbeer
@coldestbeer Жыл бұрын
@@akj3344 to minimize the code
@coldestbeer
@coldestbeer Жыл бұрын
@Kirkstrider have you even used vite?
@manojramesh4598
@manojramesh4598 11 ай бұрын
​@@coldestbeerdo you even know what is Vanilla JavaScript?
@KImtOs
@KImtOs 2 жыл бұрын
I HAVE BECOME ADDICTED TO YOUR 100 SECONDS VIDEOS, ALWAYS WAITING FOR THE NEXT
@watynecc3309
@watynecc3309 2 жыл бұрын
Go back to work baka
@KImtOs
@KImtOs 2 жыл бұрын
@@watynecc3309 **baka** part killed me xD
@watynecc3309
@watynecc3309 2 жыл бұрын
@@KImtOs *HIHIHA*
@emptychild2005
@emptychild2005 2 жыл бұрын
But there is already the NEXT video :)
@watynecc3309
@watynecc3309 2 жыл бұрын
@@emptychild2005 It was a good joke
@javiasilis
@javiasilis 2 жыл бұрын
I strongly recommend everyone to give Vite a shot. I migrated a relatively big appilcation (263 K lines of code) from Webpack to Vite as I was taking between 3 - 4 minutes to only START the dev server. After migrating to Vite, I slashed it to 5 seconds. Note: It didn't come without its issues, such as CommonJS support and refactoring of import and require statements. But it was worth it.
@avivshvitzky2459
@avivshvitzky2459 2 жыл бұрын
What it really gives beside fast server start? Alsk what about using libraries that have been built with webpack?
@Hasnain1F
@Hasnain1F 2 жыл бұрын
I tried Vite and I didn't like how it handled sourcemaps for JS and CSS. How is your experience with it so far?
@kirayamato6128
@kirayamato6128 2 жыл бұрын
Yup. Me also. Its a pain to debug the js. Also css sourcemap is broken right now. Thing i like vite is only the speed. Im using webapck mix and compilations are very slow. That's why i migrate to vite. Problem is only the sourcemaps
@LoryKa
@LoryKa Жыл бұрын
I will have to migrate an application as well. could you please give me tips on how to do this correctly and as flawless as possible?
@thedrunknmunky6571
@thedrunknmunky6571 2 жыл бұрын
You made me switch to TypeScript and honestly, it was such a pain for the first 3-4 days. Now, just 7 days later, I don't think I can go back to vanilla JS. AND as TS is a bit slow on my PC, I'll be sure to check Vite out. I need that fast feedback loop.
@thepisewigeon
@thepisewigeon 2 жыл бұрын
I can feel that pain you're talking about 😢 I'm on day 2 of switching to TypeScript
@lukasbenediktson396
@lukasbenediktson396 2 жыл бұрын
A few months in and you will love yourself
@ysink
@ysink 2 жыл бұрын
> as ts is a bit slow in my pc Sadly TSC being slow is a fact of life and we cannot change it 😩 - esbuild it fast but no checking so we still need tsc in the end pain
@just-do-halee7375
@just-do-halee7375 2 жыл бұрын
Check SWC project
@habeeb196
@habeeb196 2 жыл бұрын
SWC also don't support typescript
@miguelus373
@miguelus373 2 жыл бұрын
It's impressive how 1 hour ago I read about Vite for the first time, and now this video pops up in my feed. I love this 100s videos
@jeremyccc
@jeremyccc 2 жыл бұрын
I think the big reason everyone is talking about Vite recently is because of how well it did in the state of JS survey
@noahg2
@noahg2 2 жыл бұрын
*It's called vite, not vite*
@greNxNja13
@greNxNja13 25 күн бұрын
No it vite not vite
@JinYuanz11
@JinYuanz11 19 күн бұрын
No it is called vite not vite
@user-zo2vq3pq7g
@user-zo2vq3pq7g 3 күн бұрын
Weed 🚬
@DSEEUtkarshSinghParihar
@DSEEUtkarshSinghParihar Күн бұрын
@@user-zo2vq3pq7gyou win
@shelomoh8741
@shelomoh8741 2 жыл бұрын
I don't know what I'll do without this channel, most of the time all I need a 100seconds clear explanation!! thanks
@reactwind
@reactwind 2 жыл бұрын
this is perfect timing, I was like dude why the 100 seconds of vite isnt a thing. FireShip: Post a video about it Me: lesssgo
@louisdu54
@louisdu54 2 жыл бұрын
THANK YOU ! My god Vite is amazing. I had a pretty big Laravel / Vue3 project that took 20 minutes to npm run hot (w/ sourcemaps) and about 10 seconds every hot reloads (on a 12 core server). Now it takes about 2 seconds to boot and half a second to update. It's incredible ! This + working on a remote machine means I can have my dev website on another PC and have it reflect the changes from my IDE in less than a second. incredible !
@qonra
@qonra 2 жыл бұрын
I put together a rails+hotwire+vite+tailwind app recently and honestly this is the easiest web dev has been in years, I feel like we're finally getting away from the mess that web dev became half a decade ago. Everything seems to be consolidating and it's making the development experience a whole lot better.
@SirDamatoIII
@SirDamatoIII 2 жыл бұрын
Kicked out webpack last week. Vite is ridiculously awesome, especially with a VueJs project. Was a sinch!
@codethinh7319
@codethinh7319 2 жыл бұрын
Your timing is impeccable! I was just looking into this.
@adamturaj9611
@adamturaj9611 2 жыл бұрын
New Fireship video! Love your content ❤️
@thisissyedbasim
@thisissyedbasim 2 жыл бұрын
I really wanted this. Thank you so much fireship! you are my go to for learning new topics
@gustavo9758
@gustavo9758 2 жыл бұрын
My favorite part of the video is when Jeff starts talking, then when he continues talking and finally when he talks at the end.
@EthanStandel
@EthanStandel 2 жыл бұрын
You hyped Vite like a week or two ago. I tried it and immediately fell in love. I've already converted the CRA/Craco app I was making
@sibyl4861
@sibyl4861 2 жыл бұрын
Evan You didn't disappoint with vue and now with vite. Both of these tools are awesome.
@andorkh
@andorkh 2 жыл бұрын
I'd love to see a more indepth video of how to setup and use Vite! Looks really interesting, and much less suffering to setup then webpack
@darkside3ng
@darkside3ng 10 ай бұрын
your videos are always astonishing and mesmerizing.
@clingyking2774
@clingyking2774 2 жыл бұрын
I'm still new to web dev but your content makes it very inspiring
@matsomo
@matsomo 2 жыл бұрын
I use Vite for everything and it still blows my mind every time how fast it is
@tobychidi
@tobychidi 2 жыл бұрын
Can it work with Next JS?
@alperaktas99
@alperaktas99 2 жыл бұрын
@@tobychidi at 1:15 he talks about a plugin that helps with server side rendering Edit: nvm i misunderstood the plugin part
@tobychidi
@tobychidi 2 жыл бұрын
@@alperaktas99 Yeah. But it's not Next JS though. That's Vite SSR
@alperaktas99
@alperaktas99 2 жыл бұрын
@@tobychidi ohhh my bad. I thought he meant that the plugin would extend Vite to work with nextjs had to rewatch it again
@adeyanjusegunsamuel2686
@adeyanjusegunsamuel2686 Жыл бұрын
The only the nextjs team can implement that. Take Nuxt3 does support vite even though it is kind of similar to Nextjs
@DuongLe-em4dg
@DuongLe-em4dg 2 жыл бұрын
I just search for this video this morning on your channel and now you have uploaded it
@Yadin1234
@Yadin1234 2 жыл бұрын
Thanks for this video, it give me the confirmation I needed to start using vite in my projects
@alexawunor8853
@alexawunor8853 2 жыл бұрын
Arguably the greatest series on youtube.
@RicardoValero95
@RicardoValero95 2 жыл бұрын
These are the videos I need for my work colleagues to completely approve my decisions, been waiting for this one
@michaelpumo83
@michaelpumo83 2 жыл бұрын
Evan You is a darn genius. First Vue and now Vite. Talk about a resume!
@user-kf7my6tg7i
@user-kf7my6tg7i 2 жыл бұрын
Beautiful straight to the point explanation! Thanks for the video
@muhammed.a.k
@muhammed.a.k 2 жыл бұрын
Never knew about it, fireship is the best. Thanks for keep updating and the way you edit your videos are super duper. Much love from India
@andrewpagan
@andrewpagan 2 жыл бұрын
My company just started using Vite, and it's fkn amazing. Not sure how I worked on the FE without it until now.
@cindrmon
@cindrmon 2 жыл бұрын
thank god for vite! i love this so much! thanks for covering it!
@ngonimugumwa6374
@ngonimugumwa6374 2 жыл бұрын
Wow, definitely going to start using this over normal create-react-app
@frenzyvanrafi
@frenzyvanrafi 2 жыл бұрын
I recently using Vite for my Vue 3 front-end development and I love it!
@gregor3148
@gregor3148 2 жыл бұрын
Used this for my Sveltekit app, works very amazingly. Super fast and super slick
@codewithchikondi
@codewithchikondi 2 жыл бұрын
At first, I went to their website and I didn't understand a thing. Thanks for the video, now I can install Vite confidently.
@JoshBromberg
@JoshBromberg 2 жыл бұрын
Been using Vite on my current project, it’s awesome
@manofacertainrage856
@manofacertainrage856 4 ай бұрын
I was doing WebGL2 examples with Live Server on VSCode and started running into errors importing a module, so I remembered this video and only needed the first 80 seconds to get up and running. Nice!
@TomDoesTech
@TomDoesTech 2 жыл бұрын
So excited to create saome tutorials on Vite and Vitest
@josephmuola2609
@josephmuola2609 2 жыл бұрын
Man those intros definitely make my day
@renereiterer6058
@renereiterer6058 2 жыл бұрын
Never heard of it but it sounds really awesome, have to check it out for my next project
@imagineeelego
@imagineeelego 2 жыл бұрын
every time i learn something from scratch, he comes up with a video explaining it
@amansetia8655
@amansetia8655 2 жыл бұрын
vite is amazing, when i was trying svelte i got more roll up errors than js ones, i had given up svelte once due to roll up and was about to do again but then i found vite, loving svelte and vite since
@Unc3
@Unc3 2 жыл бұрын
the size of node_modules when generating a React project with Vite is also 3x lighter comapred to CRA (around 100mb vs 300mb) and the install/build times are just unbelievable
@riskiadhitama
@riskiadhitama 3 ай бұрын
#epic #ifinix #vaio #canon #nikon #sony #nokia #sumarecone #mercubuana #windows #samsung
@raz0229
@raz0229 2 жыл бұрын
I knew this was coming. Jeff has mentioned it several times in his videos that Vite is awesome
@dbroche
@dbroche 2 жыл бұрын
Effing love Vite! Looking forward to a full 1.0 release of VitePress
@jacquesduplessis6175
@jacquesduplessis6175 2 жыл бұрын
Love vite, I use it fore everything front-end outside of work👍🏻
@btarg1
@btarg1 2 жыл бұрын
This makes me want to try learning JS, it looks way easier than anything else!
@xrayian
@xrayian 2 жыл бұрын
I'm using vite with Vue Js 3, I have some bootstrap Js files I wanna add to the build when I try to do it it says can't bundle without the important being a module how do I handle that? (Note: setting type="module", the app doesn't work )
@nztchris313
@nztchris313 22 күн бұрын
I love you channel , you don t know what certain stack does ? boom Vite in 100 secs
@christophkrass6929
@christophkrass6929 2 жыл бұрын
that's funny... I've started my first project with vite yesterday :D Thank you Mr. Fireship
@shafraz17
@shafraz17 7 ай бұрын
Thanks very much for all your videos. not watched all but all watched are awesome. Even if sometimes i do need to decrease the playspeed to follow, thats not worth an issue compared to knowledge increase.
@kodee2
@kodee2 2 жыл бұрын
When you should that it loaded the actual source code in browser, vite blew my mind. Definitely trying vite out next chance I get for a side project
@exortions3079
@exortions3079 2 жыл бұрын
Wow, another fireship upload! Jesus, you're uploading like crazy lately :-)
@hardikmirg6279
@hardikmirg6279 2 жыл бұрын
My laptop was too slow to use create react app, i started using vite some months ago- JUST LOVING IT! I'd be nice if you could make some tutorial with PWA and service worker with Vite :P
@ikarusasas
@ikarusasas 2 жыл бұрын
My favorite part of Vite is that the dev command results in a bundle that is different from the build command. Love finding errors after building for production. Thank you JavaScript :)
@XTANCE
@XTANCE 2 жыл бұрын
Well after some time I started to simply ship dev version, and no fucks were given at all.
@JasonEfstathiou
@JasonEfstathiou 2 жыл бұрын
What..? Dev builds and production builds are wildly different in almost any language and toolchain. This is not specific to JavaScript and definitely not specific to Vite either.
@ikarusasas
@ikarusasas 2 жыл бұрын
@@JasonEfstathiou that shouldn't be the case, the code should be the same and run the same to avoid misleading bugs. It makes no sense to let the programmer think their stuff works at dev time just to throw them off at testing or production with a bug that doesn't occur in development environment
@TheJobCompany
@TheJobCompany 2 жыл бұрын
doesn't skipping type checking.. bypass the type system and let errors slip through?
@pacifi5t
@pacifi5t 2 жыл бұрын
Finally my favorite JavaScript tool. Vite saved me from a lot of headache & lost time, so I recomend you switch to it.
@dot4636
@dot4636 2 жыл бұрын
These videos are always right on time with when i want to learn a new technology. Can you make one about the webserver Caddy?
@MaxDjTutorials
@MaxDjTutorials 2 жыл бұрын
Cool! Thanks for sharing this.
@hadesthegod9181
@hadesthegod9181 2 жыл бұрын
I hope you’re making bank and I hope you’re happy because, to many of us, you’re a god. Cheers and thanks for helping me get my programming skillset together!
@ZuriPOL
@ZuriPOL 2 жыл бұрын
I am addicted to fireship videos
@anonymous_246
@anonymous_246 Жыл бұрын
How do you open and run react file using vite which was initially created via create-react-app ?
@carlosapa-esd
@carlosapa-esd 2 жыл бұрын
I've been using vite for a while and it's wonderfull!
@amirani836
@amirani836 2 жыл бұрын
Yea Vite is amazing, I was working on vue store front and it is fuuucking slowly but with Vite it will be fine. evan you is amazing person.
@TehPicix
@TehPicix 2 жыл бұрын
I watched this video as soon as it came out (as always). Finally the technology I've been waiting for, for 4 years at this point to get away from webpack. Just now found the time to migrate a project over, and it was so much easier then it looks.
@mibrahim4245
@mibrahim4245 Жыл бұрын
Can we delete the original css and js after we built the project ? can we upload the project to host with the new built assets without the original files ?
@CyberAnalyzer
@CyberAnalyzer 2 жыл бұрын
The harsh cut of the music at the end breaks my heart. Please add a fade out the next time. Awesome content! Ty!
@nate32396
@nate32396 11 ай бұрын
I recently moved my react app from CRA to Vite, it was a pain to do, but I’m so glad I did it.
@avithedev
@avithedev 2 жыл бұрын
This guy made me love javascript
@LynXify
@LynXify 5 ай бұрын
Vite has made Vue dev so much better Vue CLI was struggling in the smallest of the projects
@miladnouri4364
@miladnouri4364 Жыл бұрын
@1:49 If Vite skips Typescript type checking, does that not defeat that whole purpose of TypeScript?
@user-od1nd7zx9q
@user-od1nd7zx9q 3 ай бұрын
This was great!
@RobertWildling
@RobertWildling 2 жыл бұрын
How about a video about creating those logos? really beautiful work! I have a feeling you are re-defining logo aesthetics!
@J90JAM
@J90JAM 2 жыл бұрын
If I don't have any JS modules (small static site) do I need bundlers at all?
@alexanderhemming6148
@alexanderhemming6148 2 жыл бұрын
The question is. Why was my flavvicon for localhost already vite when I had no idea what vite was? Does PHP use it standardly?
@IanZamojc
@IanZamojc 2 жыл бұрын
A follow up with Vitest would be great.
@ryanclark1784
@ryanclark1784 2 жыл бұрын
wow, that's way cool! I'm going to have to try that
@yusrgeneral
@yusrgeneral 2 жыл бұрын
Been using vite for all my projects, it's always fast no matter how huge my code is
@Daaboo
@Daaboo Жыл бұрын
I hated react before because it was a messy install and so bloted with junk folded etc. With vite you get a clean setup that's much easier to navigate! We need more stuff like this to speed up coding
@ProtonChicken
@ProtonChicken 2 жыл бұрын
Whelp I’ll be using this for future react projects
@dmitrypatriarkh9757
@dmitrypatriarkh9757 2 жыл бұрын
I'm excited that someone can create useful tool in 2022 when we have literally everything for anything
@TCG-BOI
@TCG-BOI 2 жыл бұрын
I swear, your videos need to be used by universities and colleges to get better explanations on languages and technologies. Seriously, THE best content.
@hutomifawaza
@hutomifawaza Жыл бұрын
I want to ask, i'm migrating from webpack to vite, when i try yarn serve everything works normally, but when deploy or yarn preview the app just loads, anyone can help? thank you
@CreativeTutorialsWeb
@CreativeTutorialsWeb 2 жыл бұрын
Awesome work Sir
@tahaznazen7734
@tahaznazen7734 2 жыл бұрын
hello does vite support react routers on the prod ?
@PwrSrg
@PwrSrg 2 жыл бұрын
Can you please do Solid.js in 100 seconds?!? You always talk about how fast and awesome it is in other videos, but have barely ANY dedicated content on it. 😟 Thanks for everything else! You ROCK! 🚀
@Mauro0
@Mauro0 2 жыл бұрын
I have been using vite for 6 months and I love it. It's sooooo fats
@fajarsetiawansiagian
@fajarsetiawansiagian Жыл бұрын
thanks for the intro. look like to try move from webpack to vite
@itRemindsMeThatItNotSoBad
@itRemindsMeThatItNotSoBad 2 жыл бұрын
I fricking love this guy
@awabqureshi814
@awabqureshi814 2 жыл бұрын
this sounds so cool
@idioterich
@idioterich 2 жыл бұрын
this sounds amazing
@bl1tzQ
@bl1tzQ 2 жыл бұрын
Ty for such helpful video, I have question, I can’t use vite with nextjs?
@riandas8723
@riandas8723 Жыл бұрын
Awesome, i'll try it
@DrJimmyBob
@DrJimmyBob 2 жыл бұрын
That intro was incredible. I didn't make it 3 seconds before I hit the comments
@mrreese2342
@mrreese2342 Жыл бұрын
Vite is one of those tools where you're all stressed and worried about build problems and then it just comes and fixes everything
@Sandeep-zu7gd
@Sandeep-zu7gd 11 ай бұрын
Wouldn't skipping type check defeat the purpose of Typescript? What is the use of typescript then? I just started using TS, someone help please.
@reydez84
@reydez84 Жыл бұрын
insane, gonna do practice project with this
Unity in 100 Seconds
2:45
Fireship
Рет қаралды 1,1 МЛН
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 257 М.
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 8 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Vite Crash Course | Faster Alternative To CRA
16:24
Traversy Media
Рет қаралды 183 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2 МЛН
Next.js 13… this changes everything
6:16
Fireship
Рет қаралды 770 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 94 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,3 МЛН
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 772 М.
Vite для быстрой разработки и сборки приложения
10:49
Михаил Непомнящий
Рет қаралды 62 М.
Google's secret algorithm exposed via leak to GitHub…
3:45
Fireship
Рет қаралды 538 М.
Why is Everyone Using Vite?
7:34
Awesome
Рет қаралды 72 М.
10 regrets of experienced programmers
8:16
Fireship
Рет қаралды 967 М.
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 8 МЛН
Pratik Cat6 kablo soyma
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 32 МЛН
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 1,5 МЛН