Bumps vite from 2.7.2 to 2.9.1.
Release notes
Sourced from vite's releases.
<h2>create-vite@2.9.0</h2>Please refer to CHANGELOG.md for details.
<h2>create-vite@2.8.0</h2>Please refer to CHANGELOG.md for details.
Changelog
Sourced from vite's changelog.
<h2>2.9.1 (2022-03-31)</h2><h1>2.9.0 (2022-03-30)</h1> <h3>Faster Cold Start</h3>
- fix: allow port 0 to be provided to server (#7530) (
173e4c9), closes #7530- fix: brotli let for reassignment (#7544) (
d0253d7), closes #7544- fix: dynamic import warning with
@vite-ignore(#7533) (29c1ec0), closes #7533- fix: remove unneeded skipping optimization log (#7531) (
41fa2f5), closes #7531- docs(changelog): fix raw glob imports syntax (#7540) (
87fbe13), closes #7540- chore: 2.9 release notes (#7525) (
4324f48), closes #7525Before 2.9, the first time dev was run on a project Vite needed to perform a scan phase to discover dependencies and then pre-bundle them before starting the server. In 2.9 both scanning #7379 and pre-bundling #6758 of dependencies are now non-blocking, so the server starts right away during cold start. We also now allow requests to flow through the pipeline improving initial cold start load speed and increasing the chances of discovering new missing dependencies when re-processing and letting Vite populate the module graph and the browser to process files. In many cases, there is also no need to full-reload the page when new dependencies are discovered.
<h3>CSS Sourcemap support during dev (experimental)</h3>Vite now supports CSS sourcemaps #7173. This feature is still experimental, and it is disabled by default to avoid incurring a performance penalty for users that don't need it. To enable it, set css.devSourcemap to
<h3>Avoid splitting vendor chunks by default</h3>true.Vite's default chunking strategy was a good fit for most SPAs, but it wasn't ideal in some other use cases. Vite doesn't have enough context to make the best decision here, so in Vite 2.9 the previous chunking strategy is now opt-in #6534 and Vite will no longer split vendor libs in a separate chunk.
<h3>Web Workers enhancements</h3>Web Workers now supports source map generation (see #5417). The implementation is also now more robust, fixing several issues encountered in previous versions (#6599).
<h3>Raw Glob Imports</h3>Glob imports support for the
<pre lang="js">rawmodifier syntax has changed to using{ as: 'raw' }, which works in the same way as the?rawsuffix in regular imports:const examples = import.meta.globEager('./examples/*.html', { as: 'raw' })</pre>The
<h3>New tools for Plugin and Framework Authors</h3> <h4>Client Server Communication API</h4>{ assert: { type: 'raw' }}syntax introduced in v2.8 has been deprecated. See #7017 for more information.Vite now provides utilities for plugins to help handle the communication with clients connected to Vite's server #7437. Reusing the open WebSocket connection between the server and clients several use cases can be simplified (vite-plugin-inspect, SliDev, and many others). Check out the Client Server Communication docs for more information.
<pre lang="js">// Send a message from the client to the server if (import.meta.hot) { import.meta.hot.send('my:from-client', { msg: 'Hey!' }) </tr></table></pre>
... (truncated)
Commits
release: v2.9.1a3b9f4cfix: brotli let for reassignment (#7544)d0253d7docs(changelog): fix raw glob imports syntax (#7540)87fbe13fix: allow port 0 to be provided to server (#7530)173e4c9fix: dynamic import warning with29c1ec0@vite-ignore(#7533)fix: remove unneeded skipping optimization log (#7531)41fa2f5chore: 2.9 release notes (#7525)4324f48release: v2.9.0997e735fix: revert #7463 and #6624 (#7522)8efc6a6chore: typo (#7520)4fda42f- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by vitebot, a new releaser for vite since your current version.
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 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)