Skip to content

Commit cc1c829

Browse files
authored
fix(config): don't resolve by module field (#10347)
1 parent 14b7af6 commit cc1c829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ async function bundleConfigFile(
974974
isRequire: !isESM,
975975
preferRelative: false,
976976
tryIndex: true,
977-
mainFields: DEFAULT_MAIN_FIELDS,
977+
mainFields: [],
978978
browserField: false,
979979
conditions: [],
980980
dedupe: [],

0 commit comments

Comments
 (0)