You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gaoachao
changed the title
[swc plugin] The handler.struct_span_warn does not emit warnings if the plugin transformation completes without errors
[swc plugin] The handler.struct_span_warn does not emit warnings if the plugin transform completes without errors
Jan 16, 2025
Describe the bug
How to run the demo
demo: https://github.com/gaoachao/swc-plugin-demo
Current behavior
Expected behavior
When
npx swc index.js
succeeds, warnings should still be printed in the terminal.How to Reproduce the Issue
Here is my code, and no warnings are printed.
If I change one of the
struct_span_warn
calls tostruct_span_err
, both warnings and errors will be printed on the terminal.Input code
Config
Playground link (or link to the minimal reproduction)
https://github.com/gaoachao/swc-plugin-demo
SWC Info output
No response
Expected behavior
When the transform is successful, warnings should still be printed in the terminal.
Actual behavior
No response
Version
swc_core = { version = "9.0.*", features = ["ecma_plugin_transform"] }
Additional context
No response
The text was updated successfully, but these errors were encountered: