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.4.
<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.4 (2023-11-29)<!-- raw HTML omitted --></h2>
<ul>
<li>fix: bindCLIShortcuts to proper server (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15162">#15162</a>) (<a href="https://github.com/vitejs/vite/commit/67ac572">67ac572</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15162">#15162</a></li>
<li>fix: revert "fix: js fallback sourcemap content should be using original content (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15135">#15135</a>)" (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15178">#15178</a>) (<a href="https://github.com/vitejs/vite/commit/d2a2493">d2a2493</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15135">#15135</a> <a href="https://redirect.github.com/vitejs/vite/issues/15178">#15178</a></li>
<li>fix(define): allow define process.env (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15173">#15173</a>) (<a href="https://github.com/vitejs/vite/commit/ec401da">ec401da</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15173">#15173</a></li>
<li>fix(resolve): respect order of browser in mainFields when resolving (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15137">#15137</a>) (<a href="https://github.com/vitejs/vite/commit/4a111aa">4a111aa</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15137">#15137</a></li>
<li>feat: preserve vite.middlewares connect instance after restarts (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15166">#15166</a>) (<a href="https://github.com/vitejs/vite/commit/9474c4b">9474c4b</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15166">#15166</a></li>
<li>refactor: align with Promise.withResolvers() (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15171">#15171</a>) (<a href="https://github.com/vitejs/vite/commit/642f9bc">642f9bc</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15171">#15171</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.0.3 (2023-11-28)<!-- raw HTML omitted --></h2>
<ul>
<li>fix: <code>generateCodeFrame</code> infinite loop (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15093">#15093</a>) (<a href="https://github.com/vitejs/vite/commit/6619de7">6619de7</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15093">#15093</a></li>
<li>fix: js fallback sourcemap content should be using original content (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15135">#15135</a>) (<a href="https://github.com/vitejs/vite/commit/227d56d">227d56d</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15135">#15135</a></li>
<li>fix(css): render correct asset url when CSS chunk name is nested (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15154">#15154</a>) (<a href="https://github.com/vitejs/vite/commit/ef403c0">ef403c0</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15154">#15154</a></li>
<li>fix(css): use non-nested chunk name if facadeModule is not CSS file (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15155">#15155</a>) (<a href="https://github.com/vitejs/vite/commit/811e392">811e392</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15155">#15155</a></li>
<li>fix(dev): bind plugin context functions (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14569">#14569</a>) (<a href="https://github.com/vitejs/vite/commit/cb3243c">cb3243c</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/14569">#14569</a></li>
<li>chore(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15145">#15145</a>) (<a href="https://github.com/vitejs/vite/commit/7ff2c0a">7ff2c0a</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15145">#15145</a></li>
<li>build: handle latest json-stable-stringify replacement (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15049">#15049</a>) (<a href="https://github.com/vitejs/vite/commit/bcc4a61">bcc4a61</a>), closes <a href="https://redirect.github.com/vitejs/vite/issues/15049">#15049</a></li>
</ul>
<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>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/vitejs/vite/commit/73ef074b80fa7252e0c46a37a2c94ba8cba46504"><code>73ef074</code></a> release: v5.0.4</li>
<li><a href="https://github.com/vitejs/vite/commit/d2a2493ddfe18d58f181e947d4a92b9df1c311d3"><code>d2a2493</code></a> fix: revert "fix: js fallback sourcemap content should be using original cont...</li>
<li><a href="https://github.com/vitejs/vite/commit/4a111aafd5b488514c84bc4a00f0e5640b0079fc"><code>4a111aa</code></a> fix(resolve): respect order of browser in mainFields when resolving (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15137">#15137</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/9474c4be279e342db2264fa9e7a8b84abb54a93e"><code>9474c4b</code></a> feat: preserve vite.middlewares connect instance after restarts (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15166">#15166</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/ec401da07435f63968d4d3da361c1d40b57b6a0c"><code>ec401da</code></a> fix(define): allow define process.env (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15173">#15173</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/642f9bcb5d4a8c2455569117ef2984fe09c3acd4"><code>642f9bc</code></a> refactor: align with Promise.withResolvers() (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15171">#15171</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/67ac57283f20b8e3a2dc5809a761eefa38fffb59"><code>67ac572</code></a> fix: bindCLIShortcuts to proper server (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15162">#15162</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/2649f40733bad131bc94b06d370bedc8f57853e2"><code>2649f40</code></a> release: v5.0.3</li>
<li><a href="https://github.com/vitejs/vite/commit/811e392b771ae6bc0b27612cf9a06d01c17c3351"><code>811e392</code></a> fix(css): use non-nested chunk name if facadeModule is not CSS file (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/15155">#15155</a>)</li>
<li><a href="https://github.com/vitejs/vite/commit/cb3243c86ebc6bd7212620db27d50ea2a2bee460"><code>cb3243c</code></a> fix(dev): bind plugin context functions (<a href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/14569">#14569</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/vitejs/vite/commits/v5.0.4/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.4.
Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
73ef074release: v5.0.4d2a2493fix: revert "fix: js fallback sourcemap content should be using original cont...4a111aafix(resolve): respect order of browser in mainFields when resolving (#15137)9474c4bfeat: preserve vite.middlewares connect instance after restarts (#15166)ec401dafix(define): allow define process.env (#15173)642f9bcrefactor: align with Promise.withResolvers() (#15171)67ac572fix: bindCLIShortcuts to proper server (#15162)2649f40release: v5.0.3811e392fix(css): use non-nested chunk name if facadeModule is not CSS file (#15155)cb3243cfix(dev): bind plugin context functions (#14569)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
fe165abView logs