✌Why you need Vite: Swiss army knife of JS

🧵👇
🌴The Problem

-If you are a JavaScript developer one point or another you must have stuck with the question, "How do I start it?"

-Modern JavaScript framework has great CLI tools to make this easier but learning all of them can be a trouble for your brain
-This heavy amount of bootstrapped code from libraries don't come with their flaws, one of the biggest being exponentially increased JS to deal with on development

-This also increases the time it takes you code to start the server when on dev mode, this can hamper the dev time
-The source code of your applications also being in non-plain JavaScript requires high amount of transformations, and this should also be divided smartly to avoid unnecessary source code

-So what's the solution? @vite_js it is people ✌
✌ What is Vite? ⚡

-Firstly, Vite can provide you template sets for various tech stacks, these include:

-vanilla
-vanilla-ts
-vue
-vue-ts
-react
-react-ts
-preact
-preact-ts
-lit
-lit-ts
-svelte
-svelte-ts

-Allowing you to relax and not mug up different CLI tools
-Want a Vue app? Vite it

"npm init vite@latest my-vue-app --template vue"

-This will bundle your code with roll up, pre-configured to output highly optimized static assets for production

-It will also give you a dev server that provides rich feature enhancements
-These features include but are not limited to:

1. Dependency Resolving and Pre-Building
2. Hot Module Replacement
3. TypeScript 💙
4. Vue : Vue is the main reason I love vite so ⚡
5. JSX: Right out of box support
6. Automatic CSS injecting in <style>

And so much more!
✌ So What are you waiting for? Try Vite today

You will thank me later ⚡

vitejs.dev

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Sachin Singh Bhadoriya

Sachin Singh Bhadoriya Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @version0chiro

1 Oct
⚡Best Youtube channels for developers that I follow and why:

🧵👇
1.youtube.com/channel/UCsBjU…

-Great video content but compact
-Wide range of topics in the realm of web development
2.youtube.com/c/Insidecode

-Amazing algorithm focused channel
-Teaches even the most complicated topics easily with great animations
Read 11 tweets
28 Sep
🌴How to open source in few easy steps

-With #hacktoberfest right around the corner, its the best time to get into open source, if you have not already!

-Here is a step by step guide that can help beginners get up and ready for the festival of open source! 🧵
🌴 DO NOT DO IT FOR THE GOODIES!

-This is a major disclaimer, open-sourcing is more than just for goodies. if you are someone who is looking for a free t-shirt, please consider it again

-Open source in itself is a huge form of collaboration that brings together many (1/2)
-Different programmers and non-programmers to build and develop

-Do it for than the 5 PRs but for giving back to this community, there are many like you were once who are starting out in their journey and your contributions can help them too

-Again, "not for the goodies" (2/2)
Read 22 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(