Skip to main content

normalize_source

Function normalize_source 

Source
pub fn normalize_source(source: &str) -> String
Expand description

Normalize source code formatting to match Babel’s codegen behavior. Applied to source text that was not modified by the compiler. Currently adds blank lines after directive sequences, matching Babel’s generator which always emits a blank line after the last directive in a function/program body.