Skip to content

Commit

Permalink
feat: add entry name to manifest (#15849)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout authored Mar 12, 2024
1 parent 1cc88c1 commit 6d6ae10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface ManifestChunk {
css?: string[]
assets?: string[]
isEntry?: boolean
name?: string
isDynamicEntry?: boolean
imports?: string[]
dynamicImports?: string[]
Expand Down Expand Up @@ -60,6 +61,7 @@ export function manifestPlugin(config: ResolvedConfig): Plugin {
function createChunk(chunk: OutputChunk): ManifestChunk {
const manifestChunk: ManifestChunk = {
file: chunk.fileName,
name: chunk.name,
}

if (chunk.facadeModuleId) {
Expand Down

0 comments on commit 6d6ae10

Please sign in to comment.