(bundle: Rollup.OutputBundle)
| 1022 | } |
| 1023 | |
| 1024 | function 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 | |
| 1032 | function recordAndRemovePolyfillBabelPlugin( |
| 1033 | polyfills: Set<string>, |