From 5eddbea7519729e41495c32468b2dea9d4219e5d Mon Sep 17 00:00:00 2001 From: Yiheng Date: Mon, 5 Feb 2024 12:20:14 +0800 Subject: [PATCH] Update swc-defaults.ts to apply tsconfig source map options. --- lib/compiler/defaults/swc-defaults.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compiler/defaults/swc-defaults.ts b/lib/compiler/defaults/swc-defaults.ts index 8c85a7196..7552d471f 100644 --- a/lib/compiler/defaults/swc-defaults.ts +++ b/lib/compiler/defaults/swc-defaults.ts @@ -12,6 +12,7 @@ export const swcDefaultsFactory = ( return { swcOptions: { + sourceMaps: tsOptions?.sourceMap || (tsOptions?.inlineSourceMap && 'inline'), module: { type: 'commonjs', },