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 b71234e commit b418978
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ cli
logLevel: options.logLevel,
clearScreen: options.clearScreen,
server: cleanGlobalCLIOptions(options),
forceOptimization: options.force,
forceOptimizeDeps: options.force,
})

if (!server.httpServer) {
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export interface ResolvedWorkerOptions {
export interface InlineConfig extends UserConfig {
configFile?: string | false
envFile?: false
forceOptimization?: boolean
forceOptimizeDeps?: boolean
}

export type ResolvedConfig = Readonly<
Expand Down Expand Up @@ -1164,7 +1164,7 @@ export async function resolveConfig(
config.environments[environmentName],
resolvedDefaultResolve.alias,
resolvedDefaultResolve.preserveSymlinks,
inlineConfig.forceOptimization,
inlineConfig.forceOptimizeDeps,
logger,
environmentName,
config.experimental?.skipSsrTransform,
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ async function restartServer(server: ViteDevServer) {
let inlineConfig = server.config.inlineConfig
if (server._forceOptimizeOnRestart) {
inlineConfig = mergeConfig(inlineConfig, {
forceOptimization: true,
forceOptimizeDeps: true,
})
}

Expand Down

0 comments on commit b418978

Please sign in to comment.