We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbde2f commit bc0cc67Copy full SHA for bc0cc67
packages/vite/src/node/plugins/resolve.ts
@@ -238,10 +238,11 @@ export function oxcResolvePlugin(
238
isProduction: options.isProduction,
239
asSrc: options.asSrc ?? false,
240
preferRelative: options.preferRelative ?? false,
241
+ isRequire: options.isRequire,
242
root: options.root,
243
scan: options.scan ?? false,
244
- mainFields: options.mainFields,
245
+ mainFields: options.mainFields.concat(['main']),
246
conditions: options.conditions,
247
externalConditions: options.externalConditions,
248
extensions: options.extensions,
0 commit comments