From 6364e82b6d5960f705f3f2240dceab7d235a3560 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:45:32 +0900 Subject: [PATCH] chore: rename to `forceOptimizeDeps` --- packages/vite/src/node/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index e55d8c62aaeb39..bf13f7999d5af4 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -743,7 +743,7 @@ function resolveEnvironmentOptions( options: EnvironmentOptions, alias: Alias[], preserveSymlinks: boolean, - optimizeDepsForce: boolean | undefined, + forceOptimizeDeps: boolean | undefined, logger: Logger, environmentName: string, // Backward compatibility @@ -773,7 +773,7 @@ function resolveEnvironmentOptions( optimizeDeps: resolveDepOptimizationOptions( options.optimizeDeps, resolve.preserveSymlinks, - optimizeDepsForce, + forceOptimizeDeps, consumer, ), dev: resolveDevEnvironmentOptions( @@ -941,7 +941,7 @@ function resolveResolveOptions( function resolveDepOptimizationOptions( optimizeDeps: DepOptimizationOptions | undefined, preserveSymlinks: boolean, - optimizeDepsForce: boolean | undefined, + forceOptimizeDeps: boolean | undefined, consumer: 'client' | 'server' | undefined, ): DepOptimizationOptions { return mergeWithDefaults( @@ -952,7 +952,7 @@ function resolveDepOptimizationOptions( esbuildOptions: { preserveSymlinks, }, - force: optimizeDepsForce ?? configDefaults.optimizeDeps.force, + force: forceOptimizeDeps ?? configDefaults.optimizeDeps.force, }, optimizeDeps ?? {}, )