1ab7c5946e
This PR fixes a long standing issue where stacktraces in the built executable didn't have line and column numbers, so you were left wondering where exactly in a given function an error occurred. This also fixes source maps being generated but not actually included in the executable, this fix results in `source-map-support` actually doing it's job, so now stacktrace paths point to the typescript files, line and column number, instead of the transpiled javascript line and column number. Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/153 Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
13 lines
346 B
TypeScript
13 lines
346 B
TypeScript
import "reflect-metadata";
|
|
import "source-map-support/register";
|
|
import { Program } from "../Program";
|
|
|
|
globalThis.G_DEBUG_CONFIGURATION = false;
|
|
globalThis.G_RELEASE_CONFIGURATION = true;
|
|
globalThis.G_MODS_ENABLED = true;
|
|
globalThis.G_MODS_TRANSPILE_TS = true;
|
|
globalThis.G_LOG_REQUESTS = false;
|
|
|
|
const program = new Program();
|
|
program.start();
|