Skip to main content

transform_static_class_properties

Function transform_static_class_properties 

Source
fn transform_static_class_properties(code: &str) -> String
Expand description

Post-process generated JavaScript to match VSCode’s static class property format. Converts static x = expr; into static { this.x = expr; }. This is needed because OXC 0.48’s class properties plugin does not emit legacy static initializer blocks by default.