Closed dsyddall closed 10 months ago
Fixes #739
Currently, useDefineForClassFields is not read from tsconfig.json and not set in the SWC config.
useDefineForClassFields
tsconfig.json
This PR updates the tsCompilerOptionsToSwcConfig function to read the value of useDefineForClassFields from tsconfig.json (using the default value based on target as specified at https://www.typescriptlang.org/tsconfig#useDefineForClassFields)
tsCompilerOptionsToSwcConfig
target
See: https://swc.rs/docs/configuration/compilation#jsctransformusedefineforclassfields
All committers have signed the CLA.
Fixes #739
Currently,
useDefineForClassFields
is not read fromtsconfig.json
and not set in the SWC config.This PR updates the
tsCompilerOptionsToSwcConfig
function to read the value ofuseDefineForClassFields
fromtsconfig.json
(using the default value based ontarget
as specified at https://www.typescriptlang.org/tsconfig#useDefineForClassFields)See: https://swc.rs/docs/configuration/compilation#jsctransformusedefineforclassfields