Add SWC configuration file for TypeScript support

This commit introduces a .swrc file to define SWC configuration. It specifies the use of TypeScript syntax and targets ES2021, along with support for decorator metadata and legacy decorators. Additionally, the module type is set to CommonJS and source maps are enabled.
This commit is contained in:
Mathis H (Avnyr) 2024-10-17 16:46:15 +02:00
parent 1d550e29b1
commit b028fa653a
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

16
apps/backend/.swrc Normal file
View File

@ -0,0 +1,16 @@
{
"jsc": {
"parser": {
"syntax": "typescript"
},
"target": "es2021",
"transform": {
"decoratorMetadata": true,
"legacyDecorator": true
}
},
"module": {
"type": "commonjs"
},
"sourceMaps": true
}