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

Function isLegacyBundle

packages/plugin-legacy/src/index.ts:1024–1030  ·  view source on GitHub ↗
(bundle: Rollup.OutputBundle)

Source from the content-addressed store, hash-verified

1022}
1023
1024function isLegacyBundle(bundle: Rollup.OutputBundle) {
1025 const entryChunk = Object.values(bundle).find(
1026 (output) => output.type === 'chunk' && output.isEntry,
1027 )
1028
1029 return !!entryChunk && entryChunk.fileName.includes('-legacy')
1030}
1031
1032function recordAndRemovePolyfillBabelPlugin(
1033 polyfills: Set<string>,

Callers 1

generateBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected