Bumps vite from 2.4.4 to 2.8.0.
Release notes
Sourced from vite's releases.
<h2>create-vite@2.8.0</h2>Please refer to CHANGELOG.md for details.
<h2>create-vite@2.7.2</h2>Please refer to CHANGELOG.md for details.
<h2>create-vite@2.7.1</h2>Please refer to CHANGELOG.md for details.
<h2>create-vite@2.7.0</h2>Please refer to CHANGELOG.md for details.
Changelog
Sourced from vite's changelog.
<h1>2.8.0 (2022-02-09)</h1> <h3>Reduced Footprint</h3>Vite 2.8.0 is almost 1/4 of the 2.7.0 publish size, and the install size has been reduced by 35%. See this thread about each change that reduced Vite's footprint.
<h3>Default preview port</h3>
Version Publish Size Install Size 2.7.0 12.7MB 25.2MB 2.8.0 4.6MB 17.4MB New default port for
<h3>Workers using standard syntax</h3>vite previewis 4173 (avoid conflicts in MacOS that took over the 5000 port)Workers are detected and bundled when using
<pre lang="js">new URL('path', import.meta.url), replacing the need for the?workersuffix and aligning Vite with standard patterns. See #6356. Instead ofimport MyWorker from './worker.js?worker' const worker = new MyWorker()</pre>it is now recommended to use
<pre lang="js">const worker = new Worker( new URL('./worker.js', import.meta.url), { type: 'module' } )</pre> <h3>Configuring Workers Bundling</h3>New
workerconfig field adding support for Workerformat,pluginsand,rollupOptions. See #6351
worker.format: 'es' | 'iife'Output format for worker bundle (default:iife).worker.plugins: (Plugin | Plugin[])[]Vite plugins that apply to worker bundle.worker.rollupOptions:RollupOptionsRollup options to build worker bundle.The worker plugins pipeline isn't shared with the main Vite pipeline, there may be plugins that shouldn't be applied to Workers. If a plugin must be applied to both the main build and the worker build, you need to add a plugin in the main
<pre lang="js">pluginsarray and another one in theworker.pluginsconfig.import PluginX from 'vite-plugin-x' export default { plugins: [ PluginX() ] worker: [ format: 'es', </tr></table></pre>
... (truncated)
Commits
release: v2.8.0d4886earelease: v2.8.0-beta.7b79fec9fix: revert #6233, strip query when resolving entry (fix #6797)a012644release: v2.8.0-beta.6651e0bachore: prefer using weakmap over writing field on nodes (#6788)4a883a45306234chore: explain whynew CSSStyleSheetfeature detection is disabled (#6774)fix(ssr): skip vite resolve for windows absolute path (#6764)489a7f16409747release: v2.8.0-beta.5fix: revert #5342, only run build-html plugin on bundler inputs (#6715)59f8a63chore(deps): update dotenv-expand (#6703)0b819e2- Additional commits viewable in compare view
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)