Skip to content

Commit

Permalink
chore: reapply #5930 (#8423)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 1, 2022
1 parent 08d594b commit ab23e6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/vite/src/node/build.ts
Expand Up @@ -437,6 +437,16 @@ async function doBuild(

try {
const buildOutputOptions = (output: OutputOptions = {}): OutputOptions => {
// See https://github.com/vitejs/vite/issues/5812#issuecomment-984345618
// @ts-ignore
if (output.output) {
config.logger.warn(
`You've set "rollupOptions.output.output" in your config. ` +
`This is deprecated and will override all Vite.js default output options. ` +
`Please use "rollupOptions.output" instead.`
)
}

const cjsSsrBuild = ssr && config.ssr?.format === 'cjs'
const format = output.format || (cjsSsrBuild ? 'cjs' : 'es')
const jsExt =
Expand Down

0 comments on commit ab23e6e

Please sign in to comment.