MCPcopy
hub / github.com/vitejs/vite / isLegacyChunk

Function isLegacyChunk

packages/plugin-legacy/src/index.ts:1020–1022  ·  view source on GitHub ↗
(chunk: Rollup.RenderedChunk)

Source from the content-addressed store, hash-verified

1018}
1019
1020function isLegacyChunk(chunk: Rollup.RenderedChunk) {
1021 return chunk.fileName.includes('-legacy')
1022}
1023
1024function isLegacyBundle(bundle: Rollup.OutputBundle) {
1025 const entryChunk = Object.values(bundle).find(

Callers 1

renderChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected