Skip to content

Commit

Permalink
chore: fix for new vite resolve plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 25, 2024
1 parent afbde2f commit bc0cc67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/plugins/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,11 @@ export function oxcResolvePlugin(
isProduction: options.isProduction,
asSrc: options.asSrc ?? false,
preferRelative: options.preferRelative ?? false,
isRequire: options.isRequire,
root: options.root,
scan: options.scan ?? false,

mainFields: options.mainFields,
mainFields: options.mainFields.concat(['main']),
conditions: options.conditions,
externalConditions: options.externalConditions,
extensions: options.extensions,
Expand Down

0 comments on commit bc0cc67

Please sign in to comment.