Skip to content

Commit

Permalink
feat(optimizer): support bun text lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Dec 23, 2024
1 parent 0e9e81f commit 5b35d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ const lockfileFormats = [
checkPatches: false,
manager: 'pnpm',
},
{ name: 'bun.lockb', path: 'bun.lockb', checkPatches: true, manager: 'bun' },
{ path: 'bun.lock', checkPatches: true, manager: 'bun' },
{ path: 'bun.lockb', checkPatches: true, manager: 'bun' },
].sort((_, { manager }) => {
return process.env.npm_config_user_agent?.startsWith(manager) ? 1 : -1
})
Expand Down

0 comments on commit 5b35d5c

Please sign in to comment.