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 <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
This commit is contained in:
TheSparta 2023-10-15 16:15:34 +00:00 committed by chomp
parent 04235ca024
commit fe6865b2f0

View File

@ -67,6 +67,7 @@ export class ModCompilerService
target: ScriptTarget.ES2022,
module: ModuleKind.CommonJS,
moduleResolution: ModuleResolutionKind.Node10,
inlineSourceMap: true,
resolveJsonModule: true,
allowJs: true,
esModuleInterop: true,