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:
parent
1d550e29b1
commit
b028fa653a
16
apps/backend/.swrc
Normal file
16
apps/backend/.swrc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"jsc": {
|
||||||
|
"parser": {
|
||||||
|
"syntax": "typescript"
|
||||||
|
},
|
||||||
|
"target": "es2021",
|
||||||
|
"transform": {
|
||||||
|
"decoratorMetadata": true,
|
||||||
|
"legacyDecorator": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"module": {
|
||||||
|
"type": "commonjs"
|
||||||
|
},
|
||||||
|
"sourceMaps": true
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user