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 ?? {}, )