build: update dependency vite to v8 (main)#32769
build: update dependency vite to v8 (main)#32769angular-robot wants to merge 1 commit intoangular:mainfrom
Conversation
See associated pull request for more information.
There was a problem hiding this comment.
Code Review
This pull request updates vite to version 8, a major update which notably transitions the bundler from esbuild to Rolldown. While the lockfile has been correctly updated to reflect vite's new and updated dependencies, there are a few points to consider:
-
Dependency Inconsistency:
packages/angular/build/package.jsonhas a direct dependency onrolldownpinned to version1.0.0-rc.7. However,vite@8.0.0depends onrolldown@1.0.0-rc.9. To maintain consistency and prevent potential issues, the directrolldowndependency should be updated to1.0.0-rc.9as well. This might need to be addressed in a separate PR as the relevant line is not part of this change. -
Internal API Usage: The project patches some of Vite's internal middlewares by name (e.g.,
hostValidationMiddleware,viteBaseMiddleware). Major versions of Vite can introduce breaking changes to these internal APIs. It's important to verify that these middlewares still exist and function as expected in Vite 8 to avoid runtime failures. -
Build Configuration and Plugins: With the switch to Rolldown, some esbuild/Rollup options and plugins may no longer be applicable or could behave differently. The project uses a number of custom esbuild plugins. It would be prudent to carefully review the build logs for any new warnings from Vite about unsupported options after this upgrade.
Overall, this is a significant upgrade and these checks will help ensure a smooth transition.
This PR contains the following updates:
7.3.1→8.0.0Release Notes
vitejs/vite (vite)
v8.0.0Compare Source
Today, we're thrilled to announce the release of the next Vite major:
⚠ BREAKING CHANGES
import.meta.hot.acceptresolution fallback (#21382)rolldown-vitemerge (#21189)Features
vite-tsconfig-pathsplugin is detected (#21781) (ada493e)VisitorandESTreefromrolldown/utils(#21664) (45de31e).wasm?init(#21102) (216a3b5)assetsfield for standalone CSS entry points (#21015) (f289b9b)envPrefixcontains spaces (#21292) (9fcde3c)ignoreOutdatedRequestsoption tooptimizeDeps(#21364) (b2e75aa)rolldown-vitemerge (#21189) (4a7f8d4)Bug Fixes
watch.watcherinstead ofwatch.notify(#21793) (88953b3)server.originto public file URLs in CSS (fix #18457) (#21697) (c967f48)ssrLoadModulewith non-runnable ssr env (#21739) (1fa736e)preserveSymlinksis enabled (#21720) (72165e0)sourcemapInterceptor: "prepareStackTrace"(#21562) (416c095)tsconfigoption when loading config (#21517) (5025c35)new URLpaths to correct relative file location (#21434) (ca96cbc)output.inlineDynamicImportoption (#21464) (471ce62)server.listencallback (#21451) (602d786)rolldownCjsExternalPluginforplatform: neutral(#21452) (d2fc4be)process.getBuiltinModuleinstead ofimport('node:module')(#21402) (6633bcb)new Worker(..., new URL(import.meta.url))with trailing comma (#21325) (4a47241)import.meta.resolvewhen formatted across multiple lines (#21312) (130e718)experimental.bundledDevis enabled (#21296) (e81c183)Performance Improvements
Documentation
build.dynamicImportVarsOptions(#21477) (54ce2ed)vitein IPA symbols (#21238) (9b1d4d6)Miscellaneous Chores
fdirand@rollup/plugin-commonjs(#21639) (5abffd5)customResolverdeprecation message to mentionenforce: 'pre'(#21576) (2ce34d5)Code Refactoring
optimization.inlineConst: { mode: 'smart' }as it's enabled by default (#21794) (22b3d11)legalCommentsoption (#21721) (e06496e)ESTreetypes fromrolldown/utils(#21719) (9239750)customResolverinresolve.alias(#21476) (81275c9)@rolldown/pluginutils(#21560) (c367b62)rolldown/utils(#21577) (e56103f)experimental.enableNativePlugin: 'resolver'(#21510) (f9d9213)import.meta.dirnameeverywhere (#21509) (7becf5f)rolldownCjsExternalPlugin(#21450) (ebda8fd)import.meta.hot.acceptresolution fallback (#21382) (71d0797)Tests
handleInvokewas called in server-worker-runner.invoke test (#21751) (b95ca22)defineConfig(#21698) (4fedbbd)Beta Changelogs
8.0.0-beta.18 (2026-03-09)
See 8.0.0-beta.18 changelog
8.0.0-beta.17 (2026-03-09)
See 8.0.0-beta.17 changelog
8.0.0-beta.16 (2026-02-27)
See 8.0.0-beta.16 changelog
8.0.0-beta.15 (2026-02-19)
See 8.0.0-beta.15 changelog
8.0.0-beta.14 (2026-02-12)
See 8.0.0-beta.14 changelog
8.0.0-beta.13 (2026-02-05)
See 8.0.0-beta.13 changelog
8.0.0-beta.12 (2026-02-03)
See 8.0.0-beta.12 changelog
8.0.0-beta.11 (2026-01-29)
See 8.0.0-beta.11 changelog
8.0.0-beta.10 (2026-01-24)
See 8.0.0-beta.10 changelog
8.0.0-beta.9 (2026-01-22)
See 8.0.0-beta.9 changelog
8.0.0-beta.8 (2026-01-15)
See 8.0.0-beta.8 changelog
8.0.0-beta.7 (2026-01-08)
See 8.0.0-beta.7 changelog
8.0.0-beta.6 (2026-01-07)
See 8.0.0-beta.6 changelog
8.0.0-beta.5 (2025-12-25)
See 8.0.0-beta.5 changelog
8.0.0-beta.4 (2025-12-22)
See 8.0.0-beta.4 changelog
8.0.0-beta.3 (2025-12-18)
See 8.0.0-beta.3 changelog
8.0.0-beta.2 (2025-12-12)
See 8.0.0-beta.2 changelog
8.0.0-beta.1 (2025-12-08)
See 8.0.0-beta.1 changelog
8.0.0-beta.0 (2025-12-03)
See 8.0.0-beta.0 changelog
Rolldown-Vite changelogs
See rolldown-vite changelog