<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Esbuild - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/esbuild/</link><description>Esbuild - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Tue, 21 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/esbuild/" rel="self" type="application/rss+xml"/><item><title>Vite 入门</title><link>https://rd163.visword.com/posts/get-started-with-vite/</link><pubDate>Tue, 21 Jul 2026 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/get-started-with-vite/</guid><description><![CDATA[<blockquote>
  <p>Next generation frontend tooling. It&rsquo;s fast!</p>

</blockquote><ul>
<li><a href="https://github.com/vitejs/vite" target="_blank" rel="noopener noreferrer">Vite GitHub 仓库</a></li>
</ul>
<h2 id="为什么快" class="headerLink">
    <a href="#%e4%b8%ba%e4%bb%80%e4%b9%88%e5%bf%ab" class="header-mark"></a>为什么快</h2><ul>
<li>Vite 在启动时将应用中的模块区分为<strong>依赖</strong>(dependencies)与<strong>源码</strong>(source code)两类，从而改进了开发服务器的启动时间。依赖多为第三方库，变动不频繁，Vite 使用 esbuild 对其进行预打包;源码则按需通过原生 ESM 提供给浏览器。</li>
<li>在 Vite 中，HMR(热模块替换)是在原生 ESM 之上执行的。编辑某个文件时，Vite 只需要精确地使已编辑模块与其最近的 HMR 边界之间的链失活（大多数时候只是模块本身）,因此无论应用规模如何，HMR 始终能保持快速更新。</li>
</ul>
<h2 id="快速开始" class="headerLink">
    <a href="#%e5%bf%ab%e9%80%9f%e5%bc%80%e5%a7%8b" class="header-mark"></a>快速开始</h2><p>安装:</p>]]></description></item></channel></rss>