Skip to content

Commit

Permalink
Fix for incorrect filter logic when copying traced files (#441)
Browse files Browse the repository at this point in the history
* Fix for incorrect filter logic when copying traced files.

* Remove spaces.
  • Loading branch information
vladiulianbogdan committed Jun 14, 2024
1 parent 6032493 commit 3ff4909
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/open-next/src/build/copyTracedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ See the docs for more information on how to bundle edge runtime functions.
//Actually copy the files
filesToCopy.forEach((to, from) => {
if (
from.includes("node_modules") &&
//TODO: we need to figure which packages we could safely remove
(from.includes("caniuse-lite") ||
// from.includes("jest-worker") || This ones seems necessary for next 12
from.includes("sharp"))
from.includes(path.join("node_modules", "caniuse-lite")) ||
// from.includes("jest-worker") || This ones seems necessary for next 12
from.includes(path.join("node_modules", "sharp"))
) {
return;
}
Expand Down

0 comments on commit 3ff4909

Please sign in to comment.