From 3a09b3de40f726d07a31f72d090a3970b33f4ccf Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Wed, 11 Jun 2025 15:43:28 -0500 Subject: [PATCH] Skip Typecheck in production --- internal/bundler/bundler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/bundler/bundler.go b/internal/bundler/bundler.go index 8eea1514..15c06423 100644 --- a/internal/bundler/bundler.go +++ b/internal/bundler/bundler.go @@ -118,6 +118,9 @@ func installSourceMapSupportIfNeeded(ctx BundleContext, dir string) error { } func runTypecheck(ctx BundleContext, dir string) error { + if ctx.Production { + return nil + } tsc := filepath.Join(dir, "node_modules", ".bin", "tsc") if !util.Exists(tsc) { ctx.Logger.Warn("no tsc found at %s, skipping typecheck", tsc)