Bumps vite from 2.4.4 to 2.7.1.
Release notes
Sourced from vite's releases.
<h2>create-vite@2.7.0</h2>Please refer to CHANGELOG.md for details.
Changelog
Sourced from vite's changelog.
<h2>2.7.1 (2021-12-07)</h2> <h3>Bug Fixes</h3> <h1>2.7.0 (2021-12-07)</h1><h3>BREAKING CHANGES</h3>
- 🎉 Revamped SSR dependency handling
- 🧩 API consolidation
- 🛑 server.fs.strict by default
<h3>Features</h3>
server.fs.strictistrueby default (#5341) See server filesystem restriction docs for more details.- Plugin hooks
ssrparam to object inresolveId,load, andtransform(#5253) Previous to this release, thessrparam was passed as abooleanin the last parameter of each hook. The new interface for these hooks is now: <pre lang="ts">export interface Plugin extends RollupPlugin { // ... other hooks resolveId?(this: PluginContext, source: string, importer: string | undefined, options: { custom?: CustomPluginOptions; ssr?: boolean; }): Promise<ResolveIdResult> | ResolveIdResult; load?(this: PluginContext, id: string, options?: { ssr?: boolean; }): Promise<LoadResult> | LoadResult; transform?(this: TransformPluginContext, code: string, id: string, options?: { ssr?: boolean; }): Promise<TransformResult> | TransformResult; }</pre> In your plugins, you can check if the last param is a boolean or an object to be backward compatible with 2.6 and give some time to users to migrate to Vite 2.7.server.pluginContaineroptions object forresolveId,load, andtransform(#5294)- Normalize scripts and commands naming (#5207) Adds a new
vite devcommand alias forvite serve, preparing for the new release of create-vite where package scripts are renamed todev,build, andpreview.- Align experimental
previewapi (#5407) This API was first introduced in 2.6 and it is still in flux.- resolve
rollupOptions.inputpaths (#5601)
... (truncated)
Commits
release: v2.7.1b625a2cfix(ssr):79aa687ssrTransformhandling for empty ArrayPattern (#5988)1102789chore: update changelog for 2.7 (#5985)release: v2.7.0075128afeat: expose8184febssrTransformto server (#5983)release: v2.7.0-beta.1149f28e2fix(ssr): allow primitive default exports and forwarded exports (#5973)a47b663release: v2.7.0-beta.10aaa26a3fix: SSR import in dev can't resolve default import (fix #5706) (#5923)21d79d7fix: read the correct package.json in ssrExternal (#5927)7edabb4- 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)