Skip to main content

emit_with_comments

Function emit_with_comments 

Source
pub fn emit_with_comments(
    module: &Module,
    comments: Option<&SingleThreadedComments>,
    blank_line_positions: &[BlankLinePosition],
) -> String
Expand description

Emit an SWC Module to a string, optionally including comments. blank_line_positions describes where blank lines should be inserted to match Babel’s blank line behavior.