Skip to content

Commit 3ff4909

Browse files
Fix for incorrect filter logic when copying traced files (#441)
* Fix for incorrect filter logic when copying traced files. * Remove spaces.
1 parent 6032493 commit 3ff4909

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ See the docs for more information on how to bundle edge runtime functions.
156156
//Actually copy the files
157157
filesToCopy.forEach((to, from) => {
158158
if (
159-
from.includes("node_modules") &&
160159
//TODO: we need to figure which packages we could safely remove
161-
(from.includes("caniuse-lite") ||
162-
// from.includes("jest-worker") || This ones seems necessary for next 12
163-
from.includes("sharp"))
160+
from.includes(path.join("node_modules", "caniuse-lite")) ||
161+
// from.includes("jest-worker") || This ones seems necessary for next 12
162+
from.includes(path.join("node_modules", "sharp"))
164163
) {
165164
return;
166165
}

0 commit comments

Comments
 (0)