Today, we mark another big milestone in Vite's path. The Vite team, contributors, and ecosystem partners, are excited to announce the release of Vite 5. Vite is now using Rollup 4, which already represents a big boost in build performance. And there are also new options to improve your dev server performance profile.
Vite 5 focuses on cleaning up the API (removing deprecated features) and streamlines several features closing long-standing issues, for example switching define to use proper AST replacements instead of regexes. We also continue to take steps to future-proof Vite (Node.js 18+ is now required, and the CJS Node API has been deprecated).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 5.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/vitejs/vite/releases">vite's releases</a>.</em></p>
<blockquote>
<h2>create-vite@5.0.0</h2>
<p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@5.0.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p>
<h2>create-vite@5.0.0-beta.1</h2>
<p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@5.0.0-beta.1/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p>
<h2>create-vite@5.0.0-beta.0</h2>
<p>Please refer to <a href="https://github.com/vitejs/vite/blob/create-vite@5.0.0-beta.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a> for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md">vite's changelog</a>.</em></p>
<blockquote>
<h2><!-- raw HTML omitted -->5.0.2 (2023-11-21)<!-- raw HTML omitted --></h2>
<ul>
<li>fix: make htmlFallback more permissive (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15059">#15059</a>) (<a href="https://github.com/vitejs/vite/commit/6fcceeb">6fcceeb</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15059">#15059</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.0.1 (2023-11-21)<!-- raw HTML omitted --></h2>
<ul>
<li>test: avoid read check when running as root (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14884">#14884</a>) (<a href="https://github.com/vitejs/vite/commit/1d9516c">1d9516c</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14884">#14884</a></li>
<li>perf(hmr): skip traversed modules when checking circular imports (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15034">#15034</a>) (<a href="https://github.com/vitejs/vite/commit/41e437f">41e437f</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15034">#15034</a></li>
<li>fix: run htmlFallbackMiddleware for no accept header requests (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15025">#15025</a>) (<a href="https://github.com/vitejs/vite/commit/b93dfe3">b93dfe3</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15025">#15025</a></li>
<li>fix: update type CSSModulesOptions interface (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14987">#14987</a>) (<a href="https://github.com/vitejs/vite/commit/d0b2153">d0b2153</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14987">#14987</a></li>
<li>fix(legacy): error in build with --watch and manifest enabled (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14450">#14450</a>) (<a href="https://github.com/vitejs/vite/commit/b9ee620">b9ee620</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14450">#14450</a></li>
<li>chore: add comment about crossorigin attribute for script module (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15040">#15040</a>) (<a href="https://github.com/vitejs/vite/commit/03c371e">03c371e</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15040">#15040</a></li>
<li>chore: cleanup v5 beta changelog (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14694">#14694</a>) (<a href="https://github.com/vitejs/vite/commit/531d3cb">531d3cb</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14694">#14694</a></li>
</ul>
<h2>5.0.0 (2023-11-16)</h2>
<p>Vite 5 is out! Read the <a href="https://vitejs.dev/blog/announcing-vite5">announcement blog post here</a></p>
<p><a href="https://vitejs.dev/blog/announcing-vite5"><img src="https://vitejs.dev/og-image-announcing-vite5.png" alt="Announcing Vite 5" /></a></p>
<p>Today, we mark another big milestone in Vite's path. The Vite <a href="https://vitejs.dev/team">team</a>, <a href="https://github.com/vitejs/vite/graphs/contributors">contributors</a>, and ecosystem partners, are excited to announce the release of Vite 5. Vite is now using <a href="https://redirect.github.com/vitejs/vite/pull/14508">Rollup 4</a>, which already represents a big boost in build performance. And there are also new options to improve your dev server performance profile.</p>
<p>Vite 5 focuses on cleaning up the API (removing deprecated features) and streamlines several features closing long-standing issues, for example switching <code>define</code> to use proper AST replacements instead of regexes. We also continue to take steps to future-proof Vite (Node.js 18+ is now required, and <a href="https://vitejs.dev/guide/migration#deprecate-cjs-node-api">the CJS Node API has been deprecated</a>).</p>
<p>Quick links:</p>
<ul>
<li><a href="https://vitejs.dev">Docs</a></li>
<li><a href="https://vitejs.dev/guide/migration">Migration Guide</a></li>
</ul>
<p>Docs in other languages:</p>
<ul>
<li><a href="https://cn.vitejs.dev/">简体中文</a></li>
<li><a href="https://ja.vitejs.dev/">日本語</a></li>
<li><a href="https://es.vitejs.dev/">Español</a></li>
<li><a href="https://pt.vitejs.dev/">Português</a></li>
<li><a href="https://ko.vitejs.dev/">한국어</a></li>
<li><a href="https://de.vitejs.dev/">Deutsch</a> (new translation!)</li>
</ul>
<p>Learn more at <a href="https://vitejs.dev/blog/announcing-vite5">the Vite 5 announcement blog post</a>.</p>
<h3>Breaking changes</h3>
<ul>
<li>feat!: add isPreview to ConfigEnv and resolveConfig (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14855">#14855</a>) (<a href="https://github.com/vitejs/vite/commit/d195860">d195860</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14855">#14855</a></li>
<li>fix(types)!: expose httpServer with Http2SecureServer union (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14834">#14834</a>) (<a href="https://github.com/vitejs/vite/commit/ab5bb40">ab5bb40</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14834">#14834</a></li>
<li>refactor(preview)!: use base middleware (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14818">#14818</a>) (<a href="https://github.com/vitejs/vite/commit/69737f4">69737f4</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14818">#14818</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/vitejs/vite/commit/5d05fc2f18c2943daac0d08da4bebcd03b186990"><code>5d05fc2</code></a> release: v5.0.2</li>
<li><a href="https://github.com/vitejs/vite/commit/6fcceebe34863c4fcde809885976b12cf5398fe1"><code>6fcceeb</code></a> fix: make htmlFallback more permissive (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15059">#15059</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/c3b55c443c7619f9254ce1806aad08ffbc1cba2d"><code>c3b55c4</code></a> release: v5.0.1</li>
<li><a href="https://github.com/vitejs/vite/commit/1d9516c66af0e49b46d45f3eaabce84d933abfc7"><code>1d9516c</code></a> test: avoid read check when running as root (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14884">#14884</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/41e437fd6ff566a158efeabcaf781a9a24803381"><code>41e437f</code></a> perf(hmr): skip traversed modules when checking circular imports (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15034">#15034</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/b9ee620108819e06023e4303af75a61d3e4e4d76"><code>b9ee620</code></a> fix(legacy): error in build with --watch and manifest enabled (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14450">#14450</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/03c371e426d006148b7156d764bd9d4de664251b"><code>03c371e</code></a> chore: add comment about crossorigin attribute for script module (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15040">#15040</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/b93dfe3e08f56cafe2e549efd80285a12a3dc2f0"><code>b93dfe3</code></a> fix: run htmlFallbackMiddleware for no accept header requests (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15025">#15025</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/d0b2153a48165f9cbdbeadf1ca00935154fedd02"><code>d0b2153</code></a> fix: update type CSSModulesOptions interface (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14987">#14987</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/531d3cbd88e3024e264873653b2d3d203aebd15d"><code>531d3cb</code></a> chore: cleanup v5 beta changelog (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14694">#14694</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/v5.0.2/packages/vite">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps vite from 4.5.0 to 5.0.2.
Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
5d05fc2release: v5.0.26fcceebfix: make htmlFallback more permissive (#15059)c3b55c4release: v5.0.11d9516ctest: avoid read check when running as root (#14884)41e437fperf(hmr): skip traversed modules when checking circular imports (#15034)b9ee620fix(legacy): error in build with --watch and manifest enabled (#14450)03c371echore: add comment about crossorigin attribute for script module (#15040)b93dfe3fix: run htmlFallbackMiddleware for no accept header requests (#15025)d0b2153fix: update type CSSModulesOptions interface (#14987)531d3cbchore: cleanup v5 beta changelog (#14694)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Deploying with
Cloudflare Pages
6fa376bView logs
Superseded by #143.