Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint": "^9.32.0",
"typescript": "^5.8.3",
"unbuild": "^3.6.0",
"vite": "^6.3.5",
"vite": "^7.0.6",
"vitest": "3.2.4",
"vue": "3.5.18",
"@nuxt/eslint-config": "^1.7.1"
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
export interface ResourceMeta {
// https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/manifest.ts#L8-L19
src?: string
name?: string
file: string
css?: string[]
assets?: string[]
isEntry?: boolean
name?: string
names?: string[]
isDynamicEntry?: boolean
sideEffects?: boolean
imports?: string[]
Expand Down
2 changes: 1 addition & 1 deletion test/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Manifest, ResourceMeta } from '../src/types'

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