Skip to content

Commit d6014bb

Browse files
authoredJan 2, 2025
use pnp file to determine whether to rerun dependency optimization
1 parent 83e8705 commit d6014bb

File tree

1 file changed

+8
-2
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+8
-2
lines changed
 

‎packages/vite/src/node/optimizer/index.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,14 @@ const lockfileFormats = [
11821182
manager: 'yarn',
11831183
},
11841184
{
1185-
// Yarn PnP
1186-
path: '.yarn/install-state.gz',
1185+
// Yarn v3+ PnP
1186+
path: '.pnp.cjs',
1187+
checkPatches: false,
1188+
manager: 'yarn',
1189+
},
1190+
{
1191+
// Yarn v2 PnP
1192+
path: '.pnp.js',
11871193
checkPatches: false,
11881194
manager: 'yarn',
11891195
},

0 commit comments

Comments
 (0)