Skip to content

Commit f29c582

Browse files
docs: 4.3 announcement and release notes (#12925)
Co-authored-by: 翠 / green <[email protected]>
1 parent 658f4d0 commit f29c582

File tree

5 files changed

+113
-1
lines changed

5 files changed

+113
-1
lines changed

docs/blog/announcing-vite4-3.md

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
sidebar: false
3+
head:
4+
- - meta
5+
- property: og:type
6+
content: website
7+
- - meta
8+
- property: og:title
9+
content: Announcing Vite 4.3
10+
- - meta
11+
- property: og:image
12+
content: https://vitejs.dev/og-image-announcing-vite4-3.png
13+
- - meta
14+
- property: og:url
15+
content: https://vitejs.dev/blog/announcing-vite4-3
16+
- - meta
17+
- property: og:description
18+
content: Vite 4.3 Release Announcement
19+
- - meta
20+
- name: twitter:card
21+
content: summary_large_image
22+
---
23+
24+
# Vite 4.3 is out!
25+
26+
_April 20, 2023_
27+
28+
![Vite 4.3 Announcement Cover Image](/og-image-announcing-vite4-3.png)
29+
30+
Quick links:
31+
32+
- Docs: [English](/), [简体中文](https://cn.vitejs.dev/), [日本語](https://ja.vitejs.dev/), [Español](https://es.vitejs.dev/), [Português](https://pt.vitejs.dev/)
33+
- [Vite 4.3 Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#430-2023-04-20)
34+
35+
## Performance Improvements
36+
37+
In this minor, we focused on improving the dev server performance. The resolve logic got streamlined, improving hot paths and implementing smarter caching for finding `package.json`, TS config files, and resolved URL in general.
38+
39+
You can read a detailed walkthrough of the performance work done in this blog post by one of Vite Contributors: [How we made Vite 4.3 faaaaster 🚀](https://sun0day.github.io/blog/vite/why-vite4_3-is-faster.html).
40+
41+
This sprint resulted in speed improvements across the board compared to Vite 4.2.
42+
43+
These are the performance improvements as measured by [sapphi-red/performance-compare](https://github.com/sapphi-red/performance-compare), which tests an app with 1000 React Components cold and warm dev server startup time as well as HMR times for a root and a leaf component:
44+
45+
| **Vite (babel)** | Vite 4.2 | Vite 4.3 | Improvement |
46+
| :----------------- | --------: | -------: | ----------: |
47+
| **dev cold start** | 17249.0ms | 5132.4ms | -70.2% |
48+
| **dev warm start** | 6027.8ms | 4536.1ms | -24.7% |
49+
| **Root HMR** | 46.8ms | 26.7ms | -42.9% |
50+
| **Leaf HMR** | 27.0ms | 12.9ms | -52.2% |
51+
52+
| **Vite (swc)** | Vite 4.2 | Vite 4.3 | Improvement |
53+
| :----------------- | --------: | -------: | ----------: |
54+
| **dev cold start** | 13552.5ms | 3201.0ms | -76.4% |
55+
| **dev warm start** | 4625.5ms | 2834.4ms | -38.7% |
56+
| **Root HMR** | 30.5ms | 24.0ms | -21.3% |
57+
| **Leaf HMR** | 16.9ms | 10.0ms | -40.8% |
58+
59+
![Vite 4.3 vs 4.2 startup time comparison](/vite4-3-startup-time.png)
60+
61+
![Vite 4.3 vs 4.2 HMR time comparison](/vite4-3-hmr-time.png)
62+
63+
You can read more information about the benchmark [here](https://gist.github.com/sapphi-red/25be97327ee64a3c1dce793444afdf6e). Specs and Versions for this performance run:
64+
65+
- CPU: Ryzen 9 5900X, Memory: DDR4-3600 32GB, SSD: WD Blue SN550 NVME SSD
66+
- Windows 10 Pro 21H2 19044.2846
67+
- Node.js 18.16.0
68+
- Vite and React Plugin versions
69+
- Vite 4.2 (babel): Vite 4.2.1 + plugin-react 3.1.0
70+
- Vite 4.3 (babel): Vite 4.3.0 + plugin-react 4.0.0-beta.1
71+
- Vite 4.2 (swc): Vite 4.2.1 + plugin-react-swc 3.2.0
72+
- Vite 4.3 (swc): Vite 4.3.0 + plugin-react-swc 3.3.0
73+
74+
Early adopters have also reported seeing 1.5x-2x dev startup time improvement on real apps while testing the Vite 4.3 beta. We'd love to know the results for your apps.
75+
76+
## Profiling
77+
78+
We'll continue to work on Vite's performance. We're working on an official [Benchmark tool](https://github.com/vitejs/vite-benchmark) for Vite that let us get performance metrics for each Pull Request.
79+
80+
And [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) now has more performance-related features to help you identify which plugins or middlewares are the bottleneck for your applications.
81+
82+
Using `vite --profile` (and then pressing `p`) once the page loads will save a CPU profile of the dev server startup. You can open them in an app as [speedscope](https://www.speedscope.app/) to identify performance issues. And you can share your findings with the Vite Team in a [Discussion](https://github.com/vitejs/vite/discussions) or in [Vite's Discord](https://chat.vitejs.dev).
83+
84+
## Next Steps
85+
86+
We decided to do a single Vite Major this year aligning with the [EOL of Node.js 16](https://endoflife.date/nodejs) in September, dropping support for both Node.js 14 and 16 in it. If you would like to get involved, we started a [Vite 5 Discussion](https://github.com/vitejs/vite/discussions/12466) to gather early feedback.
350 KB
Loading

docs/public/vite4-3-hmr-time.png

114 KB
Loading

docs/public/vite4-3-startup-time.png

125 KB
Loading

packages/vite/CHANGELOG.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
## 4.3.0 (2023-04-20)
22

3-
Vite 4.3 is out!
3+
Vite 4.3 is out! Read the [announcement blog post here](https://vitejs.dev/blog/announcing-vite4-3)
4+
5+
[![Vite 4.3, It's Fast](https://vitejs.dev/og-image-announcing-vite4-3.png))](https://vitejs.dev/blog/announcing-vite4-3)
6+
7+
In this minor, we focused on improving the dev server performance. The resolve logic got streamlined, improving hot paths and implementing smarter caching for finding `package.json`, TS config files, and resolved URL in general.
8+
9+
You can read a detailed walkthrough of the performance work done in this blog post by one of Vite Contributors: [How we made Vite 4.3 faaaaster 🚀](https://sun0day.github.io/blog/vite/why-vite4_3-is-faster.html).
10+
11+
This sprint resulted in speed improvements across the board compared to Vite 4.2.
12+
13+
These are the performance improvements as measured by [sapphi-red/performance-compare](https://github.com/sapphi-red/performance-compare), which tests an app with 1000 React Components cold and warm dev server startup time as well as HMR times for a root and a leaf component:
14+
15+
| **Vite (babel)** | Vite 4.2 | Vite 4.3 | Improvement |
16+
| :----------------- | --------: | -------: | -----------: |
17+
| **dev cold start** | 17249.0ms | 5132.4ms | -70.2% |
18+
| **dev warm start** | 6027.8ms | 4536.1ms | -24.7% |
19+
| **Root HMR** | 46.8ms | 26.7ms | -42.9% |
20+
| **Leaf HMR** | 27.0ms | 12.9ms | -52.2% |
21+
22+
| **Vite (swc)** | Vite 4.2 | Vite 4.3 | Improvement |
23+
| :----------------- | --------: | -------: | -----------: |
24+
| **dev cold start** | 13552.5ms | 3201.0ms | -76.4% |
25+
| **dev warm start** | 4625.5ms | 2834.4ms | -38.7% |
26+
| **Root HMR** | 30.5ms | 24.0ms | -21.3% |
27+
| **Leaf HMR** | 16.9ms | 10.0ms | -40.8% |
28+
29+
You can read more information about the benchmark [here](https://gist.github.com/sapphi-red/25be97327ee64a3c1dce793444afdf6e)
430

531
### Features
632

0 commit comments

Comments
 (0)