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.



Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.
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.
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.
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.
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.
We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career
Comments