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:
parent
04235ca024
commit
fe6865b2f0
@ -67,6 +67,7 @@ export class ModCompilerService
|
|||||||
target: ScriptTarget.ES2022,
|
target: ScriptTarget.ES2022,
|
||||||
module: ModuleKind.CommonJS,
|
module: ModuleKind.CommonJS,
|
||||||
moduleResolution: ModuleResolutionKind.Node10,
|
moduleResolution: ModuleResolutionKind.Node10,
|
||||||
|
inlineSourceMap: true,
|
||||||
resolveJsonModule: true,
|
resolveJsonModule: true,
|
||||||
allowJs: true,
|
allowJs: true,
|
||||||
esModuleInterop: true,
|
esModuleInterop: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user