Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite 编译器的组成部分【热度: 335】 #649

Open
yanlele opened this issue Dec 17, 2023 · 0 comments
Open

vite 编译器的组成部分【热度: 335】 #649

yanlele opened this issue Dec 17, 2023 · 0 comments
Labels
TOP100互联网 公司标签 工程化 web 项目工程化
Milestone

Comments

@yanlele
Copy link
Member

yanlele commented Dec 17, 2023

关键词:vite 编译器组成部分

Vite 编译器的主要组成部分包括:

  1. esbuild:一个快速的 JavaScript 打包器,用于在开发阶段进行实时编译。esbuild 提供了快速的冷启动和热模块替换功能,能够极大地加快开发环境的构建速度。

  2. Rollup:一个强大的 JavaScript 模块打包器,在生产构建阶段使用。Rollup 能够将源代码打包为最终可发布的文件,支持代码分割、Tree Shaking 等优化技术,生成更小、更高效的代码包。

  3. 前端开发服务器:Vite 还提供了一个内置的开发服务器,用于提供开发环境下的静态文件服务和构建工具集成。这个服务器能够利用 esbuild 实现快速的编译和热模块替换,使开发者在开发过程中可以快速地预览和调试代码。

  4. 插件系统:Vite 通过插件系统来扩展其功能。开发者可以编写自定义的插件,用于处理特定的文件类型、引入额外的功能或者定制构建过程。插件系统使得 Vite 能够与各种前端框架和工具集成,并提供更灵活的开发体验。

@yanlele yanlele added TOP100互联网 公司标签 工程化 web 项目工程化 labels Dec 17, 2023
@yanlele yanlele added this to the milestone Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TOP100互联网 公司标签 工程化 web 项目工程化
Projects
None yet
Development

No branches or pull requests

1 participant