Skip to content

Commit

Permalink
chore: rename to forceOptimizeDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 17, 2024
1 parent b418978 commit 6364e82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ function resolveEnvironmentOptions(
options: EnvironmentOptions,
alias: Alias[],
preserveSymlinks: boolean,
optimizeDepsForce: boolean | undefined,
forceOptimizeDeps: boolean | undefined,
logger: Logger,
environmentName: string,
// Backward compatibility
Expand Down Expand Up @@ -773,7 +773,7 @@ function resolveEnvironmentOptions(
optimizeDeps: resolveDepOptimizationOptions(
options.optimizeDeps,
resolve.preserveSymlinks,
optimizeDepsForce,
forceOptimizeDeps,
consumer,
),
dev: resolveDevEnvironmentOptions(
Expand Down Expand Up @@ -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(
Expand All @@ -952,7 +952,7 @@ function resolveDepOptimizationOptions(
esbuildOptions: {
preserveSymlinks,
},
force: optimizeDepsForce ?? configDefaults.optimizeDeps.force,
force: forceOptimizeDeps ?? configDefaults.optimizeDeps.force,
},
optimizeDeps ?? {},
)
Expand Down

0 comments on commit 6364e82

Please sign in to comment.