Skip to content

Commit d45ace5

Browse files
fix(deps): support vite v7 manifest type (#239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <[email protected]>
1 parent f8b36e1 commit d45ace5

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"eslint": "^9.32.0",
4242
"typescript": "^5.8.3",
4343
"unbuild": "^3.6.0",
44-
"vite": "^6.3.5",
44+
"vite": "^7.0.6",
4545
"vitest": "3.2.4",
4646
"vue": "3.5.18",
4747
"@nuxt/eslint-config": "^1.7.1"

pnpm-lock.yaml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
export interface ResourceMeta {
22
// https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/manifest.ts#L8-L19
33
src?: string
4-
name?: string
54
file: string
65
css?: string[]
76
assets?: string[]
87
isEntry?: boolean
8+
name?: string
9+
names?: string[]
910
isDynamicEntry?: boolean
1011
sideEffects?: boolean
1112
imports?: string[]

test/types.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Manifest, ResourceMeta } from '../src/types'
55

66
describe('manifest', () => {
77
it('matches vite types', () => {
8-
expectTypeOf<ViteManifest>().toMatchTypeOf<Manifest>()
8+
expectTypeOf<ViteManifest>().toExtend<Manifest>()
99
expectTypeOf<ViteManifest>().toEqualTypeOf<Record<string, Omit<ResourceMeta, 'resourceType' | 'module' | 'mimeType' | 'sideEffects' | 'preload' | 'prefetch'>>>()
1010
})
1111
})

0 commit comments

Comments
 (0)