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 Oct 19, 2024
1 parent 257883f commit fde9918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,7 @@ const lockfileFormats = [
{ name: 'package-lock.json', checkPatches: true, manager: 'npm' },
{ name: 'yarn.lock', checkPatches: true, manager: 'yarn' }, // Included in lockfile for v2+
{ name: 'pnpm-lock.yaml', checkPatches: false, manager: 'pnpm' }, // Included in lockfile
{ name: 'bun.lock', checkPatches: true, manager: 'bun' },
{ name: '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 fde9918

Please sign in to comment.