Skip to main content

extract_css_module_exports

Function extract_css_module_exports 

Source
pub fn extract_css_module_exports(
    source: &str,
    is_scss: bool,
) -> Vec<ExportInfo>
Expand description

Extract class names from a CSS module file as named exports.

Each emitted ExportInfo carries a Span pointing at the bare class name in the ORIGINAL source (no leading dot), so downstream compute_line_offsets resolves the real declaration line and column instead of falling back to line:1 col:0 (issue #549).