Skip to content

Commit 2dfbf48

Browse files
committed
Don't need copy
1 parent ff778d1 commit 2dfbf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/esbuild-plugin-node/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function wrapModule(
5959
diag.debug('Skipping instrumentation for ' + path + '@' + moduleVersion + ' because it does not match supported versions' + f.supportedVersions.join(','));
6060
continue;
6161
}
62-
mod = file.patch({ ...mod }, '${moduleVersion}');
62+
mod = file.patch(mod, '${moduleVersion}');
6363
}
6464
}
6565

0 commit comments

Comments
 (0)