Closed jmpark5110 closed 3 months ago
See https://swc.rs/docs/migrating-from-tsc#usedefineforclassfields
ok, i resolved, thank you so much
but it need to manually add, not only applied tsconfig or jsc "target" properly, it is inteded operating?
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"target":"es2021",
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true,
"useDefineForClassFields": false, // add
},
"baseUrl": "./"
},
when i using @swc/jest with plainToInstance operation with @swc/jest, but ts-jest it looks fine and real runtime with swc/core it is working fine
// codes
https://github.com/swc-project/swc/issues/2117 it is already fixed in , but i think just only remained in @swc/jest