Skip to content

Commit c7fc1d4

Browse files
fix(plugin-legacy): fail to get the fileName (#5250)
1 parent 32c75e2 commit c7fc1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-legacy/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ async function buildPolyfillChunk(
591591
}
592592

593593
// add the chunk to the bundle
594-
bundle[polyfillChunk.name] = polyfillChunk
594+
bundle[polyfillChunk.fileName] = polyfillChunk
595595
}
596596

597597
const polyfillId = '\0vite/legacy-polyfills'

0 commit comments

Comments
 (0)