Skip to content

Commit

Permalink
fix(resolve): restore previous behavior where browser field is skippe…
Browse files Browse the repository at this point in the history
…d entirely when targetWeb is false
  • Loading branch information
dominikg committed Nov 25, 2023
1 parent 33678c2 commit 0c08b2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,7 @@ export function resolvePackageEntry(
if (entryPoint) {
break
}
}
if (typeof data[field] === 'string') {
} else if (typeof data[field] === 'string') {
entryPoint = data[field]
break
}
Expand Down

0 comments on commit 0c08b2c

Please sign in to comment.