Writing a plugin, I always get None for return_type #8085
-
I want to write a plugin, but I've run into a problem I can't get around. class MyClass {
myMethod(): string {
return 'string';
}
} where there is a class with a method that has a return type, the return type I get from within the plugin is Am I doing something wrong or is this an actual bug in SWC? The parser recognises the return type; if I look at the AST output by the .parse() function, the return type is properly there. It is only from within the plugin where return_type is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
swc/crates/swc/src/config/mod.rs Lines 709 to 738 in ed64833 The swc/crates/swc/src/config/mod.rs Lines 669 to 674 in ed64833 There is an option to only run plugin_transforms. However, I am uncertain of its usability due to the presence of the word |
Beta Was this translation helpful? Give feedback.
swc/crates/swc/src/config/mod.rs
Lines 709 to 738 in ed64833
The
plugin_t…