From efd0af71af461bb8690d2545bf82c259938ede54 Mon Sep 17 00:00:00 2001 From: Ryan Manuel Date: Tue, 8 Nov 2022 15:00:41 -0600 Subject: [PATCH] fix rewriter --- scripts/binary/binary-cleanup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/binary/binary-cleanup.js b/scripts/binary/binary-cleanup.js index 68dc96ac1df6..a56e64c090a3 100644 --- a/scripts/binary/binary-cleanup.js +++ b/scripts/binary/binary-cleanup.js @@ -45,7 +45,7 @@ const getDependencyPathsToKeep = async (buildAppDir) => { // These dependencies are started in a new process or thread and will not have access to the snapshot. They need to be kept in the binary require.resolve('@packages/server/lib/plugins/child/require_async_child.js', { paths: [buildAppDir] }), require.resolve('@packages/server/lib/plugins/child/register_ts_node.js', { paths: [buildAppDir] }), - require.resolve('@packages/rewriter/lib/threads/worker.ts', { paths: [buildAppDir] }), + require.resolve('@packages/rewriter/lib/threads/worker.js', { paths: [buildAppDir] }), // These dependencies use the `require.resolve(, { paths: [] })` pattern where is a path within the cypress monorepo. These will not be // pulled in by esbuild but still need to be kept in the binary. require.resolve('webpack', { paths: [buildAppDir] }),