Skip to content

Commit bc0cc67

Browse files
committed
chore: fix for new vite resolve plugin
1 parent afbde2f commit bc0cc67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vite/src/node/plugins/resolve.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,11 @@ export function oxcResolvePlugin(
238238
isProduction: options.isProduction,
239239
asSrc: options.asSrc ?? false,
240240
preferRelative: options.preferRelative ?? false,
241+
isRequire: options.isRequire,
241242
root: options.root,
242243
scan: options.scan ?? false,
243244

244-
mainFields: options.mainFields,
245+
mainFields: options.mainFields.concat(['main']),
245246
conditions: options.conditions,
246247
externalConditions: options.externalConditions,
247248
extensions: options.extensions,

0 commit comments

Comments
 (0)