chore(deps-dev): bump vite from 7.3.2 to 8.0.10 (#3688)

* chore(deps-dev): bump vite from 7.3.2 to 8.0.10

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.2 to 8.0.10.
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.0.10/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.10
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(build): use assetInfo.names array for vite 8 / rolldown

Vite 8 switched to Rolldown, where some asset hooks (e.g. the
css-post plugin's resolveAssetUrlsInCss) pass an assetInfo whose
deprecated `name` property is undefined, breaking `name.endsWith()`
in our assetFileNames callback.

Read from `assetInfo.names[0]` (Rollup 4 / Rolldown API) and fall
back to `name` for any caller still on the old shape.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LearningCircuit <185559241+LearningCircuit@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2026-04-29 23:33:07 +02:00
committed by GitHub
parent a5cd3c58d7
commit 46221dee6f
3 changed files with 516 additions and 740 deletions

1249
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@
"eslint-plugin-no-unsanitized": "^4.1.5",
"eslint-plugin-regexp": "^3.1.0",
"happy-dom": "^20.9.0",
"vite": "^7.3.2",
"vite": "^8.0.10",
"vitest": "^4.1.5"
},
"overrides": {

View File

@@ -26,10 +26,11 @@ export default defineConfig({
entryFileNames: 'js/[name].[hash].js',
chunkFileNames: 'js/[name].[hash].js',
assetFileNames: (assetInfo) => {
if (assetInfo.name.endsWith('.css')) {
const name = assetInfo.names?.[0] ?? assetInfo.name ?? '';
if (name.endsWith('.css')) {
return 'css/[name].[hash][extname]';
}
if (/\.(?:woff2?|ttf|eot|svg)$/.test(assetInfo.name)) {
if (/\.(?:woff2?|ttf|eot|svg)$/.test(name)) {
return 'fonts/[name].[hash][extname]';
}
return 'assets/[name].[hash][extname]';