Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(optimizer): use correct default install state path for yarn PnP #19119

Merged
merged 12 commits into from
Jan 10, 2025
Prev Previous commit
fix formatter
smeng9 authored Jan 7, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f1d3e6118f8fa6bee81cdb105eee69cf74e891f7
7 changes: 6 additions & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
@@ -1205,7 +1205,12 @@ const lockfileFormats = [
checkPatchesDir: false,
manager: 'pnpm',
},
{ name: 'bun.lockb', path: 'bun.lockb', checkPatchesDir: 'patches', manager: 'bun' },
{
name: 'bun.lockb',
path: 'bun.lockb',
checkPatchesDir: 'patches',
manager: 'bun',
},
].sort((_, { manager }) => {
return process.env.npm_config_user_agent?.startsWith(manager) ? 1 : -1
})