Skip to content

Commit 802fcaf

Browse files
committed
chore(ci): blog sync
1 parent 68d0fa4 commit 802fcaf

File tree

1 file changed

+172
-0
lines changed

1 file changed

+172
-0
lines changed

data/blog/post-50.mdx

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
---
2+
title: 通过尤雨溪“围绕Vite的前端统一框架”分享,看未来前端发展趋势
3+
date: 2025-03-16T10:22:18Z
4+
slug: post-50
5+
author: chaseFunny:https://github.com/chaseFunny
6+
tags: ["JavaScript","前端基建"]
7+
---
8+
9+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316161306.png)
10+
11+
12+
## vite 历史
13+
14+
看 PPT 吧!
15+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316161602.png)
16+
17+
总结:Vite 当之无愧目前前端构建工具首选
18+
19+
## Vite 现状
20+
21+
- 周下载量 2200 万 +,在 23年已经超过 Next.js
22+
- State of JS 2024 ,Vite 和 Vitest 是最受关注和欢迎的工具
23+
24+
## Vite 生态
25+
26+
在元框架中,除了 Next.js 都有在使用 Vite,毕竟人家现在有自己 turbopack。哈哈哈
27+
28+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316161806.png)
29+
30+
让我们看看这些都是什么吧!
31+
**第一行**
32+
33+
1. **Astro:** 一个现代化的静态站点生成器,以其岛屿架构(Islands Architecture)而闻名,可以构建快速的网站,只加载必要的 JavaScript。
34+
- **GitHub:** [https://github.com/withastro/astro](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fwithastro%2Fastro)
35+
2. **React:** 一个用于构建用户界面的 JavaScript 库,由 Facebook 开发,以其组件化和虚拟 DOM 而闻名。
36+
- **GitHub:** https://github.com/facebook/react
37+
3. **Vue.js:** 一个渐进式 JavaScript 框架,用于构建用户界面和单页应用。
38+
- **GitHub:**  https://github.com/vuejs/
39+
4. **oxc:** 高性能 JavaScript/TypeScript 代码检查工具
40+
- **GitHub:**  https://github.com/oxc-project/oxc
41+
5. **Svelte:** 一个不同的构建 Web 应用的方法。它是一个编译器,将你的应用程序代码转换为高效的 JavaScript,而不是在运行时解释代码
42+
- **GitHub:** [https://github.com/sveltejs/svelte](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2Fsveltejs%2Fsvelte)
43+
6. **Nuxt:** 基于 Vue.js 的 Web 全栈应用框架
44+
- **GitHub:** [https://github.com/nuxt/nuxt](https://github.com/nuxt/nuxt)
45+
7. **solidjs:** 用于构建用户界面的声明性、高效且灵活的 JavaScript 库。
46+
- **GitHub:** https://github.com/solidjs/solid
47+
48+
**第二行**
49+
50+
1. **storybook:** 用于独立构建、记录和测试 UI 组件的工具
51+
52+
- **GitHub:**  https://github.com/storybookjs/storybook
53+
54+
2. **qwik**: 无需费力即可立即加载 Web 应用程序
55+
56+
- **GitHub: https://github.com/QwikDev/qwik
57+
3. **Rollup:**  一个 JavaScript 模块打包器,可以将多个模块打包成一个或多个 bundle。Vite 在开发环境使用原生 ESM,但在生产环境仍然依赖 Rollup 进行打包和优化。
58+
- **GitHub:**  https://github.com/rollup/rollup
59+
4. **Vite:** 现代前端构建工具
60+
- **GitHub:**  https://github.com/vitejs/vite
61+
5. **rolldown**: 基于 Rust 的 JavaScript 快速打包器
62+
- **GitHub:**  https://github.com/rolldown/rolldown
63+
6. **Angular**  Angular 是一个基于 TypeScript 的开源 Web 应用框架, 由 Google 的 Angular 团队以及社区共同领导和维护。
64+
- **GitHub:**  https://github.com/angular/angular
65+
7. **Nx:** 一个智能的、可扩展的构建系统,特别适用于 monorepo 项目。
66+
- **GitHub:**  https://github.com/nrwl/nx
67+
68+
**第三行**
69+
70+
1. **pnpm:** 一个快速、节省磁盘空间的包管理器,类似于 npm 或 Yarn,但它使用不同的依赖管理策略
71+
- **GitHub:**  https://github.com/pnpm/pnpm
72+
2. **VitePress:** 一个基于 Vite 构建的静态站点生成器,由 Vue.js 团队创建,特别适用于文档站点。
73+
- **GitHub:**  https://github.com/vuejs/vitepress
74+
3. **unocss:** 一个即时、按需的原子 CSS 引擎。
75+
- **GitHub:** https://github.com/unocss/unocss
76+
4. **Vitest:** 一个由 Vite 驱动的极速单元测试框架。
77+
- **GitHub:** https://github.com/vitest-dev/vitest
78+
5. **volar:** 用于构建编程语言工具的框架
79+
- **GitHub:** https://github.com/volarjs/volar.js
80+
6. **tauri:** 使用 rust 编写的构建轻量级、安全且高性能的跨平台桌面应用程序
81+
- **GitHub:**  https://github.com/tauri-apps/tauri
82+
7. **redwood:** 一个全栈 JavaScript/TypeScript web 应用框架,旨在让开发者能够以更加集成和流畅的方式构建现代 web 应用
83+
- **GitHub:** https://github.com/redwoodjs/redwood
84+
85+
**第四行**
86+
87+
8. 没找到,不知道有没有人知道是什么?
88+
9. **Laravel:** Laravel 是一个流行的 PHP Web 应用程序框架,虽然它主要用于后端,但它也可以与 Vite 集成,以处理前端资源。
89+
- **GitHub:**  https://github.com/laravel/larave
90+
10. **Vite Ruby :** Ruby的Vite集成
91+
- **GitHub:**  https://github.com/ElMassimo/vite_ruby
92+
11. **Remix:** Remix 是一个全栈 Web 框架,专注于 Web 标准和现代 Web 应用 UX,构建更好的网站。
93+
- **GitHub:** https://github.com/remix-run/remix
94+
12. **Peaks:** : Angular 的全栈元框架。由 Vite 和 Nitro 提供支持
95+
- **GitHub:** https://github.com/analogjs/analog
96+
13. **Million:** 一种声明性的,基于HTML的语言,使构建Web应用程序变得有趣
97+
* **GitHub: https://github.com/marko-js/marko
98+
14. **playwright:** Web测试和自动化库
99+
- **GitHub:**  https://github.com/microsoft/playwright
100+
101+
Vite 恐怖的统治力!
102+
103+
## 使用 Vite 的公司
104+
105+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316174057.png)
106+
107+
## Vite 的缺点
108+
109+
依赖多个职责重复的第三方库
110+
111+
- esbuild:预打包、TS/ JSX 转译、压缩 (GO)
112+
- Rollup:插件生态、生产环境构建、拆包/产物优化 (TS)
113+
- SWC:React HMR 、转译、压缩(Rust)
114+
这些每一个都负责一部分,但是都有自己的缺点,但是他们功能也有重复的地方
115+
116+
Unbundled ESM 在请求数量巨大时存在性能瓶颈
117+
118+
什么是 Unbundled ESM?
119+
Unbundled ESM(未打包的 ECMAScript 模块)是指直接使用原生 ES 模块系统而不将它们合并(打包)成单个文件的开发和部署方式
120+
121+
## Rolldown
122+
123+
要解决的问题
124+
125+
- 兼容 Rollup 的插件 API 和生态
126+
- Rust 提升生成构建性能
127+
- 添加高阶功能
128+
- Full bundle mode 解决Vite unbundled ESM 的性能瓶颈
129+
130+
下面是 js 工具链生态,尤大整理
131+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316175737.png)
132+
前端搭建大型项目头疼的问题:
133+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316175914.png)
134+
135+
## Rust for JS
136+
137+
>尤大的公司官网: https://voidzero.dev/
138+
139+
目的:打造完整的高性能的 JS 工具链
140+
141+
为什么是 Rust?
142+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316180507.png)
143+
144+
OXC 各项都是极致的性能
145+
146+
目前在做的:
147+
Vite 整合,目前没有通过 Astro 测试
148+
Vite full bundle mode,HMR 和增量打包构建
149+
150+
rolldown 数据:
151+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316181219.png)
152+
153+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316181245.png)
154+
听不懂:
155+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316181327.png)
156+
157+
## Vite Next
158+
159+
期待
160+
161+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316181409.png)
162+
163+
他们打算交付的产品:
164+
![image.png](https://blog-1304565468.cos.ap-shanghai.myqcloud.com/work/20250316181658.png)
165+
166+
## 资源:
167+
168+
1. 大会所有 PPT: https://github.com/d2forum/19th
169+
2. 视频: https://www.bilibili.com/video/BV1WERGYDEix
170+
171+
---
172+
此文自动发布于:<a href="https://github.com/coderPerseus/blog/issues/50" target="_blank">github issues</a>

0 commit comments

Comments
 (0)