From 77dd7ceb7e6c118052421f3c5ed6faeac41d80c5 Mon Sep 17 00:00:00 2001 From: OnurGvnc Date: Tue, 10 Jan 2023 10:35:07 +0300 Subject: [PATCH] fix: exclude @remix-run/server-runtime from external deps to reduce bundle size --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 99950d4..45af20a 100644 --- a/build.js +++ b/build.js @@ -1,7 +1,7 @@ require('esbuild').buildSync({ bundle: true, entryPoints: ['src/index.ts'], - external: ['zod'], + external: ['zod', '@remix-run/server-runtime'], outfile: 'dist/index.js', platform: 'node', target: ['node16'],