diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index e90bdd7150bced..77680d34f3c224 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -968,7 +968,7 @@ async function bundleConfigFile( mainFields: [], browserField: false, conditions: [], - overrideConditions: ['node'], + overrideConditions: ['node', 'require'], dedupe: [], extensions: DEFAULT_EXTENSIONS, preserveSymlinks: false