Skip to content

Commit 501572a

Browse files
authored
chore: use destructuring alias in buildEnvironment function (#19472)
1 parent 976103e commit 501572a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vite/src/node/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@ function resolveConfigToBuild(
532532
async function buildEnvironment(
533533
environment: BuildEnvironment,
534534
): Promise<RollupOutput | RollupOutput[] | RollupWatcher> {
535-
const { root, packageCache } = environment.config
536-
const options = environment.config.build
535+
const { root, packageCache, build: options } = environment.config
537536
const libOptions = options.lib
538537
const { logger } = environment
539538
const ssr = environment.config.consumer === 'server'

0 commit comments

Comments
 (0)