Vite is The New Webpack and Create-React-App killer!

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 59

  • @voidmind
    @voidmind ปีที่แล้ว +18

    Running the 3 different build at the same time is not a valid benchmark, because the processes are competing for your CPU. It would have made more sense to run the one after the other.

  • @babblebey
    @babblebey 2 ปีที่แล้ว +16

    I got started with ReactJS ⚛️ not too long ago, I couldn't believe I waited a more than 45mins for the create-react-app to fully set-up. Later I found Vite, I have not looked back ever since. Great Video 👍🏾😊

    • @vnm_8945
      @vnm_8945 2 ปีที่แล้ว +34

      wtf you coding on, pentium 3?

    • @babblebey
      @babblebey 2 ปีที่แล้ว +5

      @@vnm_8945 hahahaha 🤣😂, I guess the internet connection didn't help either 😂🤣

    • @lenardmangay-ayam2530
      @lenardmangay-ayam2530 2 ปีที่แล้ว

      Same experience

    • @Imran-Desk
      @Imran-Desk 2 ปีที่แล้ว +2

      45 ?🤯

    • @kammitch3131
      @kammitch3131 2 ปีที่แล้ว +5

      Ain’t no way it took 45 mins man 😂

  • @CheulongSear
    @CheulongSear 2 ปีที่แล้ว +33

    my current company is using vite. And it is awesome, light weight and super fast. But there is hard to figure it out when there're errors during configing to make it work with some libraries.

    • @abdulazeezolanrewaju843
      @abdulazeezolanrewaju843 2 ปีที่แล้ว

      Exactly!

    • @cyrusgracias4556
      @cyrusgracias4556 2 ปีที่แล้ว

      What about browser support?
      Does the code generated by vite work on older browser versions as well?

  • @LordFullStack
    @LordFullStack 2 ปีที่แล้ว +6

    Evan You , is a true gem for web developers .

  • @ragtop63
    @ragtop63 ปีที่แล้ว +2

    Vite, pronounced "veet" (sounds similar to "feet")

  • @inasuma8180
    @inasuma8180 2 ปีที่แล้ว +11

    i recommend every programmer learn the Rollup API and build their own apps that way. Rollup is very straightforward and only needs to be as complicated as you want it to be (vs. webpack, where it's just always complicated lol).

  • @jaycodes8790
    @jaycodes8790 2 ปีที่แล้ว +2

    Vite Error handling is not as good as createReactApp.... This is the only cons

  • @honkhonkv2236
    @honkhonkv2236 ปีที่แล้ว +3

    Vite = fast in french and we pronounce it "veet".

    • @lukas.webdev
      @lukas.webdev ปีที่แล้ว +1

      Thanks for the info. 😉

  • @HotelSeptember
    @HotelSeptember 2 ปีที่แล้ว +3

    Thanks for the intro. Would have been nice for more information on the impact of the final product Vs bundled file. You speak about the dev experience being fast but in the grand scheme of things, the production application is what matters. What improvements are made here by using Vite?

    • @bryanltobing
      @bryanltobing 2 ปีที่แล้ว

      from what i know. the production is similar to cra and other react tool..vite only really focus on development environment. and as the app grows. the development speed still the same and fast

  • @СэмФишер-х4д
    @СэмФишер-х4д 2 ปีที่แล้ว +2

    "we need more frontend app builders, milord!"

  • @digitnomad
    @digitnomad ปีที่แล้ว +1

    Vite:68.84s vs Create React App:75.47s vs webpack:84.22s isn't that bad. thanks for sharing.

  • @isaac80745
    @isaac80745 ปีที่แล้ว +1

    Vite is a great project starter. There are no issues when I run npm install and create my project.

  • @adamblade9156
    @adamblade9156 ปีที่แล้ว +1

    I take it this is more for new projects, I've tried switching an old react application (3 years) from webpack to vite, but I'm getting a lot of strange errors from the libraries.

    • @lukas.webdev
      @lukas.webdev ปีที่แล้ว

      Correct, start using it from now on should work best... 😉

  • @luisbrazilva
    @luisbrazilva ปีที่แล้ว

    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.

  • @Emanuel-yb3qk
    @Emanuel-yb3qk 2 ปีที่แล้ว +1

    Then, thanks to Vite, it is no longer necessary using webpack?

  • @DIN_A8
    @DIN_A8 2 ปีที่แล้ว +1

    You are constantly delievering the best content! Love it.

  • @thanatosor
    @thanatosor 2 ปีที่แล้ว +1

    Vite + React + Ionic > React Native ?

  • @remcokersten1174
    @remcokersten1174 ปีที่แล้ว

    Wow, thank you for your amazing explanation!

  • @Kamel419
    @Kamel419 2 ปีที่แล้ว

    why not pronounce it like "bite"?

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 2 ปีที่แล้ว

    We need vite.js tutorial full playlist 🙂
    How to customise vite?

  • @tylim88
    @tylim88 2 ปีที่แล้ว

    vite cant work with dynamic module out of the box and I have no idea how to configure it. Create react app at the other hand works out of the box

    • @DerrickBarra
      @DerrickBarra 2 ปีที่แล้ว

      I'm learning Vite and I was scratching my head looking for how to support dynamic modules, thanks for confirming it cant do that out of the box

  • @anandca4096
    @anandca4096 2 ปีที่แล้ว

    Vite is powerful 🚀🚀

  • @anandca4096
    @anandca4096 2 ปีที่แล้ว

    Bro do you have scroll issues on chrome when using linux ubuntu

  • @monarchgam3r
    @monarchgam3r 2 ปีที่แล้ว

    I have an issue with vite-react in vscode, specifically about auto imports
    When I setup jsconfig base url n paths, vscode doesn't work with it properly but webstorm works well and obeys the config

    • @puppycatuaena4270
      @puppycatuaena4270 2 ปีที่แล้ว

      you need to configure with vite.config.js path too in order to make it work beside the jsconfig

    • @monarchgam3r
      @monarchgam3r 2 ปีที่แล้ว

      @@puppycatuaena4270 I have done that ..
      Like I said.. it works fine in webstorm.. but vscode ignores it and uses relative paths

    • @cyrusgracias4556
      @cyrusgracias4556 2 ปีที่แล้ว

      Perhaps it also depends on package managers
      Try classic yarn (V1)
      You won't have any issues

  • @spirobel
    @spirobel 2 ปีที่แล้ว

    amazing. I will try vite!

  • @Asmrcodingbliss
    @Asmrcodingbliss 2 ปีที่แล้ว

    thank bro

  • @ms77grz
    @ms77grz 2 ปีที่แล้ว

    👍👍

  • @mrkhoros
    @mrkhoros 2 ปีที่แล้ว +3

    Vite sucks. There are no words how much it sucks. It fails to refresh files in sub folders. I have had to retart vite altogether to get my changes effective. DO NOT USE VITE AND DO NOT LISTEN TO THIS GUY.

    • @CoderOne
      @CoderOne  2 ปีที่แล้ว +11

      Vite uses chokidar (github.com/paulmillr/chokidar) for file watching! There are scenarios related to different criteria (file-system, env, os...) that makes chokidar fails. This happens with all bundlers not only Vite.
      If it's failing for you, that doesn't mean it's rubbish.

    • @coding7430
      @coding7430 2 ปีที่แล้ว +3

      vite is good, however it still has road ahead for improvement

    • @coffee-is-power
      @coffee-is-power ปีที่แล้ว

      Bitch wtf? i use vite and its pretty good actually, i have no complains about it, it just works and it is super fast, if you have problema with doesnt mean it sucks and hes lying like wtf you saying

    • @mrkhoros
      @mrkhoros ปีที่แล้ว

      @@coffee-is-power B!!!!tch ? I am not your mother I hope you know. Learn how to break words before typing something.

  • @kostraone
    @kostraone 2 ปีที่แล้ว +5

    Yes guys. Just one more step and you'll realise react is a bunch of crap and you'll rediscover coding pleasure with vue 🤓

    • @daycoder301
      @daycoder301 2 ปีที่แล้ว +2

      also when i code with vue, my mental health is more stable, lol

  • @fransis4448
    @fransis4448 2 ปีที่แล้ว

    Please stop comparison, just if I you like just use otherwise use webpack. Sorry but I do not like such comparison that creates the pro and cons groups. Thank you for the video

  • @walterlol
    @walterlol 2 ปีที่แล้ว +2

    It's pronounced Vite (Vaite).

    • @joshuaneedham1260
      @joshuaneedham1260 2 ปีที่แล้ว +11

      According to the website it is pronounced veet.

    • @Nounearthlyglow
      @Nounearthlyglow 2 ปีที่แล้ว +8

      @@joshuaneedham1260 The Sheik has spoken, and has spoken incorrectly.

  • @Pareshbpatel
    @Pareshbpatel ปีที่แล้ว

    {2023-05-03}

  • @jesseliverless9811
    @jesseliverless9811 ปีที่แล้ว

    For fucks sake it's veeeeeeeeeeeet!