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
How to pass the information of the custom swc-loader plugin during compilation to the outside, such as the time consumption of the visit_mut_call_expr method or the processed file name.
I hope to get the information of my custom swc-loader plugin at the end of compilation. I tried two ways and they didn't work:
A custom plugin similar to babel-plugin, passing an object reference to my swc-loader plugin through js, modifying this object in the swc-loader plugin, but after the compilation is completed, the external object has not changed, which may be caused by cross-language transmission instead of object reference...
By writing files in swc-loader, such as fs::write(incoming_config.file_name, "hello write") or OpenOptions::new().., but an error will be reported because there is no permission: Err(Os { code: 76, kind: PermissionDenied, message: "Capabilities insufficient" })
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to pass the information of the custom swc-loader plugin during compilation to the outside, such as the time consumption of the visit_mut_call_expr method or the processed file name.
I hope to get the information of my custom swc-loader plugin at the end of compilation. I tried two ways and they didn't work:
Beta Was this translation helpful? Give feedback.
All reactions