feature: make class-transformer compatible with swc output #796
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
Description
Hi. After switching from ts-node to swc, I find that class-transformer cannot work properly. After some investigation, I find that this line misses a condition. The full if check should (or might) be like this.
Proposed solution
I have made a repostory to demonstrate the above issue:
npm run test:swc
If we remove the
!('value' in descriptor)
check, the swc test will fail.If you think this feature is acceptable, I'm happy to make a PR. Thank you
The text was updated successfully, but these errors were encountered: