Server/project/.swcrc
TheSparta 418d9f2a8f Import path alias on the whole project (!157)
- Ability to use @spt-aki path alias on the whole project.
- Swapped all imports from relative paths, for imports using the path alias.

Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/157
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2023-10-19 17:21:17 +00:00

37 lines
846 B
Plaintext

{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"dynamicImport": true,
"decorators": true
},
"transform": {
"decoratorMetadata": true
},
"target": "es2022",
"loose": true,
"externalHelpers": false,
// Requires v1.2.50 or upper and requires target to be es2016 or upper.
"keepClassNames": true,
"baseUrl": "./",
"paths": {
"@spt-aki/*": [
"src/*"
]
}
},
"exclude": [
"node_modules/"
],
"module": {
"type": "commonjs",
"strict": false,
"strictMode": false,
"lazy": false,
"noInterop": false
},
"sourceMaps": true,
"minify": false
}