Skip to content

Commit

Permalink
chore: try set default value first
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Oct 22, 2024
1 parent 5492d2f commit c8ab916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ export async function resolveConfig(

const isBuild = command === 'build'

config = mergeConfig({ resolve: { conditions: DEFAULT_CONDITIONS } }, config)

// run config hooks
const userPlugins = [...prePlugins, ...normalPlugins, ...postPlugins]
config = await runConfigHook(config, userPlugins, configEnv)
Expand Down

0 comments on commit c8ab916

Please sign in to comment.