From 714d162c637adac650f980f1b687a2190b27fc4b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:04:44 -0800 Subject: [PATCH] sourcemaps --- src/utils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.tsx b/src/utils.tsx index 3fb3dc1..03bdcbe 100644 --- a/src/utils.tsx +++ b/src/utils.tsx @@ -154,7 +154,7 @@ export async function transpile(path: string): Promise { entrypoints: [path], format: 'esm', minify: false, - sourcemap: 'none', + sourcemap: process.env.NODE_ENV === 'production' ? 'none' : 'inline', }) if (!result.outputs[0]) throw new Error(`Failed to build ${path}`) @@ -169,4 +169,4 @@ export async function transpile(path: string): Promise { // redirect to the referrer, or fallback if no referrer export function redirectBack(c: Context, fallback = "/") { return c.redirect(c.req.header("Referer") || fallback) -} \ No newline at end of file +}