Added swc for transpiling typescript

This commit is contained in:
2024-08-21 17:21:54 +02:00
parent 7f33956dfb
commit bc60728735
8 changed files with 985 additions and 26 deletions

33
.swcrc Normal file
View File

@@ -0,0 +1,33 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false,
"dynamicImport": true,
"decorators": false
},
"target": "es2022",
"loose": false,
"externalHelpers": false,
"keepClassNames": false,
"preserveAllComments": false,
"baseUrl": "./",
"paths": {
"utils/*": ["src/utils/*"],
"schemas/*": ["src/schemas/*"],
"config/*": ["src/config/*"],
"interfaces": ["src/interfaces/index"],
"typings": ["src/typings/index"]
}
},
"module": {
"type": "commonjs",
"strict": true,
"strictMode": true,
"noInterop": false,
"lazy": false
},
"minify": false,
"sourceMaps": false
}