From fe6865b2f0ac1ebd1ec12004c754e29fd0e47fdf Mon Sep 17 00:00:00 2001 From: TheSparta Date: Sun, 15 Oct 2023 16:15:34 +0000 Subject: [PATCH] Added sourcemap generation for typescript mods (!155) This PR makes it so typescript generates inline sourcemaps when transpiling mods to javascript. This will make it so stacktraces originating in the mod source code point to the typescript files, lines and columns. Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/155 Co-authored-by: TheSparta Co-committed-by: TheSparta --- project/src/services/ModCompilerService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/project/src/services/ModCompilerService.ts b/project/src/services/ModCompilerService.ts index c7907f2a..c8394c6c 100644 --- a/project/src/services/ModCompilerService.ts +++ b/project/src/services/ModCompilerService.ts @@ -67,6 +67,7 @@ export class ModCompilerService target: ScriptTarget.ES2022, module: ModuleKind.CommonJS, moduleResolution: ModuleResolutionKind.Node10, + inlineSourceMap: true, resolveJsonModule: true, allowJs: true, esModuleInterop: true,