File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface ManifestChunk {
21
21
assets ?: string [ ]
22
22
isEntry ?: boolean
23
23
name ?: string
24
- names ?: string [ ]
24
+ // names field is deprecated (removed from types, but still emitted for backward compatibility)
25
25
isDynamicEntry ?: boolean
26
26
imports ?: string [ ]
27
27
dynamicImports ?: string [ ]
@@ -131,12 +131,14 @@ export function manifestPlugin(): Plugin {
131
131
if ( name ) {
132
132
manifestChunk . isEntry = true
133
133
manifestChunk . name = name
134
+ // @ts -expect-error keep names field for backward compatibility
135
+ manifestChunk . names = asset . names
134
136
}
135
137
return manifestChunk
136
138
}
137
139
138
140
const entryCssReferenceIds = cssEntriesMap . get ( this . environment ) !
139
- const entryCssAssetFileNames = new Map ( )
141
+ const entryCssAssetFileNames = new Map < string , string > ( )
140
142
for ( const [ name , id ] of entryCssReferenceIds ) {
141
143
try {
142
144
const fileName = this . getFileName ( id )
You can’t perform that action at this time.
0 commit comments