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

Function createLegacyOutput

packages/plugin-legacy/src/index.ts:450–460  ·  view source on GitHub ↗
(
        options: Rollup.OutputOptions = {},
      )

Source from the content-addressed store, hash-verified

448 }
449
450 const createLegacyOutput = (
451 options: Rollup.OutputOptions = {},
452 ): Rollup.OutputOptions => {
453 return {
454 ...options,
455 format: 'esm',
456 entryFileNames: getLegacyOutputFileName(options.entryFileNames),
457 chunkFileNames: getLegacyOutputFileName(options.chunkFileNames),
458 minify: false, // minify with terser instead
459 }
460 }
461
462 const { rolldownOptions } = config.build
463 const { output } = rolldownOptions

Callers 1

configResolvedFunction · 0.85

Calls 1

getLegacyOutputFileNameFunction · 0.85

Tested by

no test coverage detected