Skip to content

Commit 08ae87b

Browse files
authored
feat: print esbuild options when both esbuild and oxc options are set (#21216)
1 parent 3e2b0f6 commit 08ae87b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/vite/src/node/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'node:fs'
22
import path from 'node:path'
33
import fsp from 'node:fs/promises'
44
import { pathToFileURL } from 'node:url'
5-
import { promisify } from 'node:util'
5+
import { inspect, promisify } from 'node:util'
66
import { performance } from 'node:perf_hooks'
77
import { createRequire } from 'node:module'
88
import crypto from 'node:crypto'
@@ -1760,7 +1760,8 @@ export async function resolveConfig(
17601760
logger.warn(
17611761
colors.yellow(
17621762
`Both esbuild and oxc options were set. oxc options will be used and esbuild options will be ignored.`,
1763-
),
1763+
) +
1764+
` The following esbuild options were set: \`${inspect(config.esbuild)}\``,
17641765
)
17651766
} else {
17661767
oxc = convertEsbuildConfigToOxcConfig(config.esbuild, logger)

0 commit comments

Comments
 (0)