swc_transform_common::output

Function capture

source
pub fn capture<Ret>(f: impl FnOnce() -> Ret) -> (Ret, FxHashMap<String, Value>)
Expand description

(Experimental) Captures output.

This is not stable and may be removed in the future.