Skip to main content

formatjs_pass

Function formatjs_pass 

Source
pub fn formatjs_pass(config: Config) -> impl Pass
Expand description

Convenience wrapper that returns the transform as impl Pass, ready to drop into swc::Compiler::process_js_with_custom_pass without the caller having to import swc_core::ecma::visit::visit_mut_pass themselves.

Equivalent to: swc_core::ecma::visit::visit_mut_pass(formatjs(config)).