Skip to content

Commit

Permalink
fix: config bundling regression
Browse files Browse the repository at this point in the history
Bug introduced in vitejs#10683

Some packages use "require" instead of "default" for CJS entry
  • Loading branch information
aleclarson committed Nov 14, 2022
1 parent a94200f commit 296fe46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Expand Up @@ -968,7 +968,7 @@ async function bundleConfigFile(
mainFields: [],
browserField: false,
conditions: [],
overrideConditions: ['node'],
overrideConditions: ['node', 'require'],
dedupe: [],
extensions: DEFAULT_EXTENSIONS,
preserveSymlinks: false
Expand Down

0 comments on commit 296fe46

Please sign in to comment.