chore(deps): update dependency vite to v4 #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/vite-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^3.0.4->^4.0.0⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
vitejs/vite
v4.0.0Compare Source
Read the announcement blog post: Announcing Vite 4
Quick links:
Docs in other languages:
Main Changes
This major is smaller in scope compared to Vite 3, with the main objective of upgrading to Rollup 3. We've worked with the ecosystem to ensure a smooth upgrade path for this new major.
Rollup 3
Vite is now using Rollup 3, which allowed us to simplify Vite's internal asset handling and has many improvements. See the Rollup 3 release notes here.
Framework Plugins out of the Vite core monorepo
@vitejs/plugin-vueand@vitejs/plugin-reacthave been part of Vite core monorepo since the first versions of Vite. This helped us to get a close feedback loop when making changes as we were getting both Core and the plugins tested and released together. With vite-ecosystem-ci we can get this feedback with these plugins developed on independent repositories, so from Vite 4, they have been moved out of the Vite core monorepo. This is meaningful for Vite's framework-agnostic story, and will allow us to build independent teams to maintain each of the plugins. If you have bugs to report or features to request, please create issues on the new repositories moving forward:vitejs/vite-plugin-vueandvitejs/vite-plugin-react.New React plugin using SWC during development
SWC is now a mature replacement for Babel, especially in the context of React projects. SWC's React Fast Refresh implementation is a lot faster than Babel, and for some projects, it is now a better alternative. From Vite 4, two plugins are available for React projects with different tradeoffs. We believe that both approaches are worth supporting at this point, and we'll continue to explore improvements to both plugins in the future.
@vitejs/plugin-react
@vitejs/plugin-react is a plugin that uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the babel transform pipeline.
@vitejs/plugin-react-swc (new)
@vitejs/plugin-react-swc is a new plugin that uses esbuild during build, but replaces Babel with SWC during development. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.
Compatibility
The modern browser build now targets
safari14by default for wider ES2020 compatibility (https://github.com/vitejs/vite/issues/9063). This means that modern builds can now useBigIntand that the nullish coallessing operator isn't transpiled anymore. If you need to support older browsers, you can add@vitejs/plugin-legacyas usual.Importing CSS as a string
In Vite 3, importing the default export of a
.cssfile could introduce a double loading of CSS.This double loading could occur since a
.cssfile will be emitted and it's likely that the CSS string will also be used by the application code — for example, injected by the framework runtime. From Vite 4, the.cssdefault export has been deprecated. The?inlinequery suffix modifier needs to be used in this case, as that doesn't emit the imported.cssstyles.Other features
kBto align with browser dev tools (#10982)Features
expand(#11141) (825c793), closes #11141safari14by default for wider ES2020 compatibility (#9063) (3cc65d7), closes #9063transformIndexHtmlhook (#9669) (1db52bf), closes #9669Bug Fixes
\0to virtual files id (#11261) (02cdfa9), closes #11261NODE_ENVmore predictable (#10996) (8148af7), closes #10996addWatchFile()work (fix #7024) (#9723) (34db08b), closes #7024 #9723nullfromCSSModulesOptions.localsConvention(#10904) (a9978dd), closes #10904baseinresolveConfigand dev server (#10247) (16e4123), closes #10247Previous Changelogs
4.0.0-beta.7 (2022-12-08)
See 4.0.0-beta.7 changelog
4.0.0-beta.6 (2022-12-08)
See 4.0.0-beta.6 changelog
4.0.0-beta.5 (2022-12-08)
See 4.0.0-beta.5 changelog
4.0.0-beta.4 (2022-12-07)
See 4.0.0-beta.4 changelog
4.0.0-beta.3 (2022-12-07)
See 4.0.0-beta.3 changelog
4.0.0-beta.2 (2022-12-07)
See 4.0.0-beta.2 changelog
4.0.0-beta.1 (2022-12-06)
See 4.0.0-beta.1 changelog
4.0.0-beta.0 (2022-12-05)
See 4.0.0-beta.0 changelog
4.0.0-alpha.6 (2022-11-30)
See 4.0.0-alpha.6 changelog
4.0.0-alpha.5 (2022-11-22)
See 4.0.0-alpha.5 changelog
4.0.0-alpha.4 (2022-11-17)
See 4.0.0-alpha.4 changelog
4.0.0-alpha.3 (2022-11-15)
See 4.0.0-alpha.3 changelog
4.0.0-alpha.2 (2022-11-13)
See 4.0.0-alpha.2 changelog
4.0.0-alpha.1 (2022-11-12)
See 4.0.0-alpha.1 changelog
4.0.0-alpha.0 (2022-11-07)
See 4.0.0-alpha.0 changelog
v3.2.5Compare Source
v3.2.4Compare Source
v3.2.3Compare Source
@types/nodeas an optional peer dependency (#10757) (57916a4), closes #10757vite:afterUpdateevent (#9810) (1f57f84), closes #9810multilineCommentsREregex (fix #10689) (#10751) (51ed059), closes #10689 #10751v3.2.2Compare Source
jsxoverrides esbuild options, reverts #10374 (#10714) (aacf6a4), closes #10374 #10714v3.2.1Compare Source
v3.2.0Compare Source
Main Changes
Multiple Entries for Library Mode
Library mode now supports multiple entries:
Check out the PR #7047, and the
build.libconfig docsbuild.modulePreloadoptionsVite now allows filtering and modifying module preload dependencies for each entry and async chunk.
experimental.renderBuiltUrlwill also get called for preload asset paths. Andbuild.modulePreload.resolveDependencieswill be called both for JS dynamic imports preload lists and also for HTML preload lists for chunks imported from entry HTML files. Refer to the PR for more context #9938 and check out the modulePreload config docs. Note:build.modulePreloadPolyfillis now deprecated, please migrate tobuild.modulePreload.polyfill.Include Duplicate Assets in the Manifest
Laravel and other backends integrations will now get entries for every asset file, even if they have been de-duplicated. See #9928 for more information.
Customizable ErrorOverlay
You can now customize the ErrorOverlay by using css parts. Check out the PR for more details: #10234.
Features
new URLto resolve package assets (#7837) (bafccf5), closes #7837server.fs.deny(#10044) (df560b0), closes #10044Bug Fixes
import.meta.resolve) (fixes #10430) (#10528) (64f19b9), closes #10430 #10528?directin id for postcss process (#10514) (67e7bf2), closes #10514moduleResolution=node16(#10375) (8c4df1f), closes #10375mainFieldswhen resolving browser/module field (fixes #8659) (#10071) (533d13c), closes #8659 #10071build.ssris true (#9989) (7229251), closes #9989^2.79.1(#10298) (2266d83), closes #10298Previous Changelogs
3.2.0-beta.4 (2022-10-24)
See 3.2.0-beta.4 changelog
3.2.0-beta.3 (2022-10-20)
See 3.2.0-beta.3 changelog
3.2.0-beta.2 (2022-10-14)
See 3.2.0-beta.2 changelog
3.2.0-beta.1 (2022-10-10)
See 3.2.0-beta.1 changelog
3.2.0-beta.0 (2022-10-05)
See 3.2.0-beta.0 changelog
v3.1.8Compare Source
Please refer to CHANGELOG.md for details.
v3.1.7Compare Source
Please refer to CHANGELOG.md for details.
v3.1.6Compare Source
Please refer to CHANGELOG.md for details.
v3.1.5Compare Source
Please refer to CHANGELOG.md for details.
v3.1.4Compare Source
Please refer to CHANGELOG.md for details.
v3.1.3Compare Source
rollupOptions.inputin lib mode (#10116) (c948e7d), closes #10116v3.1.2Compare Source
v3.1.1Compare Source
asyncandawaitin code (#9854) (31f5ff3), closes #9854v3.1.0Compare Source
Main Changes
Features
server.ssrTransform(#9769) (246a087), closes #9769Bug Fixes
inlineDynamicImportswhen input has length 1 (#9904) (9ac5075), closes #9904thistovoid(#9885) (2d2f2e5), closes #9885completeSystemWrapPlugincapturesfunction ()(fixes #9807) (#9821) (1ee0364), closes #9807 #9821injectQuerybreak relative path (#9760) (61273b2), closes #9760Previous Changelogs
3.1.0-beta.2 (2022-09-02)
See 3.1.0-beta.2 changelog
3.1.0-beta.1 (2022-08-29)
See 3.1.0-beta.1 changelog
3.1.0-beta.0 (2022-08-25)
See 3.1.0-beta.0 changelog
v3.0.9Compare Source
rollupOptions.output.dir(fix #9100) (#9111) (3bffd14), closes #9100 #9111ssrTransformobject allocation (#9706) (6e58d9d), closes #9706v3.0.8Compare Source
v3.0.7Compare Source
v3.0.6Compare Source
import.meta.urlfor relative assets if output is not ESM (fixes #9297) (#9381) (6d95225), closes #9297 #9381v3.0.5Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: ui/package-lock.json