Open tada5hi opened 1 year ago
@kdy1 this would be really great if this works in the future :blush:, than it would also possible to transpile codebases which are based on decorators, like typeorm
for example.
It's definitely not a priority and I'm very busy.
Also, please don't write comments like +1
It's definitely not a priority and I'm very busy. Also, please don't write comments like
+1
No problem ✌️. Nevertheless, thank you very much. Swc is a really nice transpiler and besides the decorator problem, which makes it unusable for some libraries/application, i hadn't any real problems with it yet.
I would really love this feature if it can be supported! Our particular use case is that we are using the Routing-controllers. Thanks for SWC 🎉
Describe the bug
When switching from
tsc
toswc
to transpile TypeScript to JavaScript code, the swc transpiler sets for union types with null the metadata to: Objectts
tsc compilation
swc compilation
Input code
No response
Config
Playground link
No response
Expected behavior
It should choose the non
null
type in preference like the tsc compiler does. But I'm also not sure if the behavior differs in several aspects. I only noticed it for the union type.Actual behavior
No response
Version
1.3.26
Additional context
No response