Skip to main content

swc_comments_to_single_threaded

Function swc_comments_to_single_threaded 

Source
pub fn swc_comments_to_single_threaded(
    comments: &SwcComments,
) -> SingleThreadedComments
Expand description

Converts multi-threaded [SwcComments] into [SingleThreadedComments] by copying all entries. Required when APIs (e.g. swc_ecma_react_compiler) only accept the single-threaded variant.