What's New in Vite 6

This ad is not shown to multipass and full ticket holders
JSNation US
JSNation US 2026
November 16 - 19, 2026
New York, US & Online
Upcoming event
JSNation US 2026
JSNation US 2026
November 16 - 19, 2026. New York, US & Online
Bookmark
Rate this content
Sentry
Promoted
Code breaks, fix it faster

Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.

Get started

The main focus of the talk will be the new environments API that is a big deal for frameworks.

This talk has been presented at JSNation US 2024, check out the latest edition of this JavaScript Conference.

FAQ

Vite offers a great plugin API based on Rollup, built-in support for server-side rendering, a powerful dev server, and zero-config testing with VTest. It also supports hot module reloading, which is a significant time saver for developers.

The environment API in Vite allows for more flexible and cleaner development processes by enabling separate environments for server-side rendering and client-side execution. It simplifies configuration and reduces complexity in the development workflow.

Vite supports server-side rendering (SSR) out of the box. It was inspired by an early version of SvelteKit and allows developers to load modules for SSR, making it easier to develop hybrid applications.

The Vite community has grown significantly, with over 1,000 contributors to the Vite repository. This collaborative effort has helped improve and expand Vite, making it a widely used tool in the web development community.

Vite is expected to continue evolving, with plans to stabilize the environment API and integrate Rollup to create a more unified and less complex development experience. These changes aim to provide faster builds and more consistent tooling.

The environment API allows developers to create multiple environments, which can be used to build cross-platform applications, web extensions, or dev environments for different cloud providers, enhancing flexibility and customization.

The Vite community plays a crucial role, contributing to its development and success. With nearly a billion downloads and millions of projects using Vite, the community-driven approach helps ensure Vite meets the needs of its users.

Vite is a build tool designed to provide a faster and leaner development experience for modern web projects. It is maintained by a community of contributors, including Dominic, who works with both the Vite and Svelte teams.

Vite was publicly released in 2021. By the middle of the referenced year, it had been downloaded 12 million times, and by the time of the talk, it had reached 16 million downloads.

Vite is known for its speed and simplicity, using ESBuild for optimization and Rollup for its plugin API. It offers a less complex and more consistent development experience compared to tools like Webpack, especially with upcoming improvements like Rollup integration.

Dominik Göpel
Dominik Göpel
29 min
18 Nov, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Vite, a popular build tool for front-end development, has seen significant growth since its public release in 2021. It has been downloaded 12 million times and has over 1,000 contributors. Vite offers benefits such as a powerful dev server, hot module reloading, and a plugin API based on Rollup. However, there are limitations with server-side rendering that require extra code and handling of SSR flags. Vite's environment API allows for cleaner communication between the browser and server, and plugins can configure and customize specific environments. The future plans for Vite include stabilizing the environment API and integrating Rolldown Vite for faster builds. Vite is compatible with various front-end frameworks and is used by projects like Vaku and Vinci. The environment API has potential for per-local builds and building on older versions of Node, but may not be recommended for internationalization purposes.
Available in Español: Qué hay de nuevo en Vite 6

1. Introduction to Vite and its History

Short description:

In this talk, I'll give you a first overview of our history. Vite is turning older. It started in 2021 as a public release. We have had a massive influx of frameworks using Vite and a massive influx of users. People use Vite a lot. It's been downloaded 12 million times in the middle of the year. This year, we cracked 1,000 contributors to the Vite repository. We are a community building it together.

♪♪ I'm Dominic. I'm not sure if you can see the slides, so... Yeah, that's me. And I maintain Vite and Svelte. At least, I work with both teams and do some tooling, like Vite Ecosystem CI, Vite Plugin Svelte, or TSConfCheck, that everybody who uses TypeScript with Vite has to use too, to load TypeScript config files.

But this talk is not about me. I'm a freelancer as well, but open source is what I love. Today, I'm talking to you about Vite 6 and even beyond. In this talk, I'll give you a first overview of our history. There is history with Vite now. That's great. We have a little break as well. Then it's all about the environments and what it has in it for our future.

So history first. Vite is turning older. It started in 2021 as a public release. And soon enough, it'll be four years, but it's been a wild ride. We have had a massive influx of frameworks using Vite. And as a result, also a massive influx of users. The download charts are always a joy to see because when you do open source, you want nothing more than people to actually use what you do. People use Vite a lot. It's been downloaded 12 million times in the middle of the year. Today, this is 16 million. Last year at this conference, it was downloaded 8 million times, now it's 16 million. So it doubled its downloads in that time.

What I'm even more proud of is that this year, we cracked 1,000 contributors to the Vite repository. So we are not alone building this. We are a community building it together. And I can't even name all the projects that have logos on this slide. And there's some missing because it was done a few months ago.

2. Benefits and Limitations of Vite

Short description:

We have a great plugin API based on Rollup. It supports server-side rendering and makes framework authors' lives easier. The powerful dev server and testing with VTest are unmatched in developer experience. Hot module reloading is a time saver. VT's built pipeline has great defaults. VT is loved because it's easy to use and has few limitations.

And this makes me very, very proud. And we all like it, but why? I'm getting somewhere with this, please trust me.

We have a great plugin API based on Rollup. We enhanced it with a few extra hooks. This allows frameworks to build their tooling in a very consistent and easy way. It supports server-side rendering out of the box. Server-side rendering is, well, one of the trends in the last years. Especially hybrid applications that hydrate on the client after they rendered the initial response on the server are not even a thing you can do, but a thing you should or must do today. And the built-in support just makes framework authors' lives a lot easier.

The powerful dev server is also one thing that is amazing to use. And you can build dev tooling that is unmatched in developer experience. You should watch what Anthony Fu has up his sleeve because honestly, this guy, he gave us Vt Plugin Inspect, which allows you to watch what other plugins are doing or what your plugins are doing. It's super great. And testing with VTest is zero config by default. So you don't have to create a huge config that mimics your application runtime to tell your test runner what it should test. It just works.

Hot module reloading, like rerunning of tests of files you changed, is a time saver. It has saved me probably weeks of my life already. And you can configure it with so many options. Like, VTest is one of the most feature-rich test runners out there. It's, yeah, I swoon every time I use it. And the defaults built into Vt's built pipeline are also great. So regularly, user configs are just import a few plugins, set one, two options, and you get your output. So you don't have to do a lot as a user to use a framework that's built on VT. And I think that's one of the greatest things why VT is loved so much.

So with that being said, it's time for a break, right? It works. It's loved. It's growing exponentially still. So we are done. We just ride the hype train and feel like using it and not doing anything about it because never change a running thing, right? But some limitations do apply.

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Vite: Rethinking Frontend Tooling
JSNation Live 2021JSNation Live 2021
31 min
Vite: Rethinking Frontend Tooling
Top Content
Vite is a next-generation build tool that leverages native ES modules for improved performance. It eliminates the need for bundling and improves hot module replacement. Vite provides an opinionated default configuration while still allowing advanced customization through plugins. It is framework agnostic and can be used for React and other applications. Vite is being adopted by Next.js and Create React App, and integration with Nuxt 3 offers significant speed improvements.
Building Better Websites with Remix
React Summit Remote Edition 2021React Summit Remote Edition 2021
33 min
Building Better Websites with Remix
Top Content
Remix is a web framework built on React Router that focuses on web fundamentals, accessibility, performance, and flexibility. It delivers real HTML and SEO benefits, and allows for automatic updating of meta tags and styles. It provides features like login functionality, session management, and error handling. Remix is a server-rendered framework that can enhance sites with JavaScript but doesn't require it for basic functionality. It aims to create quality HTML-driven documents and is flexible for use with different web technologies and stacks.
Speeding Up Your React App With Less JavaScript
React Summit 2023React Summit 2023
32 min
Speeding Up Your React App With Less JavaScript
Top Content
Mishko, the creator of Angular and AngularJS, discusses the challenges of website performance and JavaScript hydration. He explains the differences between client-side and server-side rendering and introduces Quik as a solution for efficient component hydration. Mishko demonstrates examples of state management and intercommunication using Quik. He highlights the performance benefits of using Quik with React and emphasizes the importance of reducing JavaScript size for better performance. Finally, he mentions the use of QUIC in both MPA and SPA applications for improved startup performance.
Full Stack Documentation
JSNation 2022JSNation 2022
28 min
Full Stack Documentation
Top Content
The Talk discusses the shift to full-stack frameworks and the challenges of full-stack documentation. It highlights the power of interactive tutorials and the importance of user testing in software development. The Talk also introduces learn.svelte.dev, a platform for learning full-stack tools, and discusses the roadmap for SvelteKit and its documentation.
Welcome to Nuxt 3
Vue.js London Live 2021Vue.js London Live 2021
29 min
Welcome to Nuxt 3
Top Content
Nux3 has made significant improvements in performance, output optimization, and serverless support. Nuxt Bridge brings the Nitro engine for enhanced performance and easier transition between Nuxt 2 and Nuxt Read. Nuxt 3 supports Webpack 5, Bytes, and Vue 3. NextLab has developed brand new websites using Docus technology. Nuxt.js is recommended for building apps faster and simpler, and Nuxt 2 should be used before migrating to Nuxt 3 for stability. DOCUS is a new project that combines Nuxt with additional features like content modules and an admin panel.
SolidJS: Why All the Suspense?
JSNation 2023JSNation 2023
28 min
SolidJS: Why All the Suspense?
Top Content
Suspense is a mechanism for orchestrating asynchronous state changes in JavaScript frameworks. It ensures async consistency in UIs and helps avoid trust erosion and inconsistencies. Suspense boundaries are used to hoist data fetching and create consistency zones based on the user interface. They can handle loading states of multiple resources and control state loading in applications. Suspense can be used for transitions, providing a smoother user experience and allowing prioritization of important content.

Workshops on related topic

Building WebApps That Light Up the Internet with QwikCity
JSNation 2023JSNation 2023
170 min
Building WebApps That Light Up the Internet with QwikCity
WorkshopFree
Miško Hevery
Miško Hevery
Building instant-on web applications at scale have been elusive. Real-world sites need tracking, analytics, and complex user interfaces and interactions. We always start with the best intentions but end up with a less-than-ideal site.
QwikCity is a new meta-framework that allows you to build large-scale applications with constant startup-up performance. We will look at how to build a QwikCity application and what makes it unique. The workshop will show you how to set up a QwikCitp project. How routing works with layout. The demo application will fetch data and present it to the user in an editable form. And finally, how one can use authentication. All of the basic parts for any large-scale applications.
Along the way, we will also look at what makes Qwik unique, and how resumability enables constant startup performance no matter the application complexity.
Back to the Roots With Remix
React Summit 2023React Summit 2023
106 min
Back to the Roots With Remix
Workshop
Alex Korzhikov
Pavlik Kiselev
2 authors
The modern web would be different without rich client-side applications supported by powerful frameworks: React, Angular, Vue, Lit, and many others. These frameworks rely on client-side JavaScript, which is their core. However, there are other approaches to rendering. One of them (quite old, by the way) is server-side rendering entirely without JavaScript. Let's find out if this is a good idea and how Remix can help us with it?
Prerequisites- Good understanding of JavaScript or TypeScript- It would help to have experience with React, Redux, Node.js and writing FrontEnd and BackEnd applications- Preinstall Node.js, npm- We prefer to use VSCode, but also cloud IDEs such as codesandbox (other IDEs are also ok)
Let AI Be Your Docs
JSNation 2024JSNation 2024
69 min
Let AI Be Your Docs
Workshop
Jesse Hall
Jesse Hall
Join our dynamic workshop to craft an AI-powered documentation portal. Learn to integrate OpenAI's ChatGPT with Next.js 14, Tailwind CSS, and cutting-edge tech to deliver instant code solutions and summaries. This hands-on session will equip you with the knowledge to revolutionize how users interact with documentation, turning tedious searches into efficient, intelligent discovery.
Key Takeaways:
- Practical experience in creating an AI-driven documentation site.- Understanding the integration of AI into user experiences.- Hands-on skills with the latest web development technologies.- Strategies for deploying and maintaining intelligent documentation resources.
Table of contents:- Introduction to AI in Documentation- Setting Up the Environment- Building the Documentation Structure- Integrating ChatGPT for Interactive Docs
Learn Fastify One Plugin at a Time
Node Congress 2021Node Congress 2021
128 min
Learn Fastify One Plugin at a Time
Workshop
Matteo Collina
Matteo Collina
Fastify is an HTTP framework for Node.js that focuses on providing a good developer experience without compromising on performance metrics. What makes Fastify special are not its technical details, but its community which is wide open for contributions of any kind. Part of the secret sauce is Fastify plugin architecture that enabled developers to write more than a hundred plugins.This hands-on workshop is structured around a series of exercises that covers from basics "hello world", to how to structure a project, perform database access and authentication.

https://github.com/nearform/the-fastify-workshop
Build a Product Page with Shopify’s Hydrogen Framework
React Advanced 2022React Advanced 2022
81 min
Build a Product Page with Shopify’s Hydrogen Framework
Workshop
David Witt
David Witt
Get hands on with Hydrogen, a React-based framework for building headless storefronts. Hydrogen is built for Shopify commerce with all the features you need for a production-ready storefront. It provides a quick start, build-fast environment so you can focus on the fun stuff - building unique commerce experiences. In this workshop we’ll scaffold a new storefront and rapidly build a product page. We’ll cover how to get started, file-based routing, fetching data from the Storefront API, Hydrogen’s built-in components and how to apply styling with Tailwind.You will know:- Get started with the hello-world template on StackBlitz- File-based routing to create a /products/example route- Dynamic routing /products/:handle- Hit the Storefront API with GraphQL- Move the query into the Hydrogen app- Update the query to fetch a product by handle- Display title, price, image & description.- Tailwind styling- Variant picker and buy now button- Bonus if there’s time: Collections page
Prerequisites: - A Chromium-based browser (StackBlitz)- Ideally experience with React. A general web development background would be fine.
Build a Universal Reactive Data Library with Starbeam
JSNation 2023JSNation 2023
66 min
Build a Universal Reactive Data Library with Starbeam
WorkshopFree
Yehuda Katz
Yehuda Katz
This session will focus on Starbeam's universal building blocks. We'll use Starbeam to build a data library that works in multiple frameworks.We'll write a library that caches and updates data, and supports relationships, sorting and filtering.Rather than fetching data directly, it will work with asynchronously fetched data, including data fetched after initial render. Data fetched and updated through web sockets will also work well.All of these features will be reactive, of course.Imagine you filter your data by its title, and then you update the title of a record to match the filter: any output relying on the filtered data will update to reflect the updated filter.In 90 minutes, you'll build an awesome reactive data library and learn a powerful new tool for building reactive systems. The best part: the library works in any framework, even though you don't think about (or depend on) any framework when you built it.
Table of contents- Storing a Fetched Record in a Cell- Storing multiple records in a reactive Map- Reactive iteration is normal iteration- Reactive filtering is normal filtering- Fetching more records and updating the Map- Reactive sorting is normal sorting (is this getting a bit repetitive?)- Modelling cache invalidation as data- Bonus: reactive relationships