ReviewOS

also looking at this

meemalabs/hoodratz.io

chore(deps-dev): bump vite from 2.7.2 to 2.9.0

#125
Closed dependabot[bot] wants to merge dependabot/npm_and_yarn/vite-2.9.0 into develop
2 files +163 -139
9 days ago

Bumps vite from 2.7.2 to 2.9.0.

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.

<h1>2.9.0 (2022-03-30)</h1> <h3>Faster Cold Start</h3>

Before 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 true.

<h3>Avoid splitting vendor chunks by default</h3>

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 raw modifier syntax has changed to using { as: 'raw' }, which works in the same way as the ?raw suffix in regular imports:

<pre lang="js">const examples = import.meta.globEager('./examples/*.html', { as: { 'raw' }}) </pre>

The { assert: { type: 'raw' }} syntax introduced in v2.8 has been deprecated. See #7017 for more information.

<h3>New tools for Plugin and Framework Authors</h3> <h4>Client Server Communication API</h4>

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!' }) } </pre> <pre lang="js">// And listen to client messages in a plugin configureServer(server) { server.ws.on('my:from-client', (data, client) =&gt; { console.log('Message from client:', data.msg) // Hey! // ... }) } &lt;/tr&gt;&lt;/table&gt; </pre>

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by vitebot, a new releaser for vite since your current version.


Dependabot compatibility score

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 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)

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.