Skip to content

Commit c8ab916

Browse files
committed
chore: try set default value first
1 parent 5492d2f commit c8ab916

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vite/src/node/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ export async function resolveConfig(
878878

879879
const isBuild = command === 'build'
880880

881+
config = mergeConfig({ resolve: { conditions: DEFAULT_CONDITIONS } }, config)
882+
881883
// run config hooks
882884
const userPlugins = [...prePlugins, ...normalPlugins, ...postPlugins]
883885
config = await runConfigHook(config, userPlugins, configEnv)

0 commit comments

Comments
 (0)