We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d594b commit ab23e6eCopy full SHA for ab23e6e
packages/vite/src/node/build.ts
@@ -437,6 +437,16 @@ async function doBuild(
437
438
try {
439
const buildOutputOptions = (output: OutputOptions = {}): OutputOptions => {
440
+ // See https://github.com/vitejs/vite/issues/5812#issuecomment-984345618
441
+ // @ts-ignore
442
+ if (output.output) {
443
+ config.logger.warn(
444
+ `You've set "rollupOptions.output.output" in your config. ` +
445
+ `This is deprecated and will override all Vite.js default output options. ` +
446
+ `Please use "rollupOptions.output" instead.`
447
+ )
448
+ }
449
+
450
const cjsSsrBuild = ssr && config.ssr?.format === 'cjs'
451
const format = output.format || (cjsSsrBuild ? 'cjs' : 'es')
452
const jsExt =
0 commit comments