Skip to content

Commit ab23e6e

Browse files
authored
chore: reapply #5930 (#8423)
1 parent 08d594b commit ab23e6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/vite/src/node/build.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,16 @@ async function doBuild(
437437

438438
try {
439439
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+
440450
const cjsSsrBuild = ssr && config.ssr?.format === 'cjs'
441451
const format = output.format || (cjsSsrBuild ? 'cjs' : 'es')
442452
const jsExt =

0 commit comments

Comments
 (0)