Skip to content

Commit

Permalink
fix(config): Warn about terserOptions in more cases (#7101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvolfik committed Feb 27, 2022
1 parent 3012541 commit 79428ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -649,7 +649,7 @@ export async function resolveConfig(
)
}

if (config.build?.terserOptions && config.build.minify === 'esbuild') {
if (config.build?.terserOptions && config.build.minify !== 'terser') {
logger.warn(
colors.yellow(
`build.terserOptions is specified but build.minify is not set to use Terser. ` +
Expand Down

0 comments on commit 79428ad

Please sign in to comment.