Skip to content

Commit

Permalink
refactor: client-only top-level warmup (#18524)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Oct 31, 2024
1 parent 3194a6a commit a50ff60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,15 +966,16 @@ export async function resolveConfig(
// Merge default environment config values
const defaultEnvironmentOptions = getDefaultEnvironmentOptions(config)
// Some top level options only apply to the client environment
const defaultClientEnvironmentOptions = {
const defaultClientEnvironmentOptions: UserConfig = {
...defaultEnvironmentOptions,
optimizeDeps: config.optimizeDeps,
}
const defaultNonClientEnvironmentOptions = {
const defaultNonClientEnvironmentOptions: UserConfig = {
...defaultEnvironmentOptions,
dev: {
...defaultEnvironmentOptions.dev,
createEnvironment: undefined,
warmup: undefined,
},
build: {
...defaultEnvironmentOptions.build,
Expand Down

0 comments on commit a50ff60

Please sign in to comment.