Skip to content

Commit

Permalink
use pnp file to determine whether to rerun dependency optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
smeng9 authored Jan 2, 2025
1 parent 83e8705 commit d6014bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,8 +1182,14 @@ const lockfileFormats = [
manager: 'yarn',
},
{
// Yarn PnP
path: '.yarn/install-state.gz',
// Yarn v3+ PnP
path: '.pnp.cjs',
checkPatches: false,
manager: 'yarn',
},
{
// Yarn v2 PnP
path: '.pnp.js',
checkPatches: false,
manager: 'yarn',
},
Expand Down

0 comments on commit d6014bb

Please sign in to comment.