mirror of
https://github.com/LearningCircuit/local-deep-research.git
synced 2026-06-16 20:10:39 +03:00
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:
1249
package-lock.json
generated
1249
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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": {
|
||||
|
||||
@@ -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]';
|
||||
|
||||
Reference in New Issue
Block a user