Skip to content

Commit 30c86ac

Browse files
committed
fix: ignore @img/* in copyTracedFiles
1 parent 9748fcf commit 30c86ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/open-next/src/build/copyTracedFiles.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ File ${fullFilePath} does not exist
198198
//TODO: we need to figure which packages we could safely remove
199199
from.includes(path.join("node_modules", "caniuse-lite")) ||
200200
// from.includes("jest-worker") || This ones seems necessary for next 12
201-
from.includes(path.join("node_modules", "sharp"))
201+
from.includes(path.join("node_modules", "sharp")) ||
202+
// This seems to be only in Next 15
203+
// Some of sharp deps are under the @img scope
204+
from.includes(path.join("node_modules", "@img"))
202205
) {
203206
return;
204207
}

0 commit comments

Comments
 (0)