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§
sourcefn new_name_for(&self, local: &JsWord) -> JsWord
fn new_name_for(&self, local: &JsWord) -> JsWord
Creates a class name for the given local_name
.