Skip to content

Commit 8e890e1

Browse files
authored
fix(optimizer): skip patches dir check for yarn.lock fallback (#23725)
1 parent 197daf6 commit 8e890e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/vite/src/node/optimizer

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,8 @@ const lockfilePaths = lockfileFormats.map((l) => l.path)
12981298
const fallbackLockfileFormats = [
12991299
{
13001300
path: 'yarn.lock',
1301-
checkPatchesDir: '.yarn/patches',
1301+
// Included in lockfile
1302+
checkPatchesDir: false,
13021303
manager: 'yarn',
13031304
},
13041305
]

0 commit comments

Comments
 (0)