Trait swc_css_modules::TransformConfig

source ·
pub trait TransformConfig {
    // Required method
    fn new_name_for(&self, local: &JsWord) -> JsWord;
}
Expand description

Various configurations for the css modules.

§Note

This is a trait rather than a struct because api like fn() -> String is too restricted and Box<Fn() -> String is (needlessly) slow.

Required Methods§

source

fn new_name_for(&self, local: &JsWord) -> JsWord

Creates a class name for the given local_name.

Implementors§