mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
feat(css/modules): Add a lifetime to config parameter (#6144)
This commit is contained in:
parent
5c4a2c69b4
commit
1196d60182
@ -52,7 +52,7 @@ pub struct TransformResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a map from local name to exported name.
|
/// Returns a map from local name to exported name.
|
||||||
pub fn compile(ss: &mut Stylesheet, config: impl TransformConfig) -> TransformResult {
|
pub fn compile<'a>(ss: &mut Stylesheet, config: impl 'a + TransformConfig) -> TransformResult {
|
||||||
let mut compiler = Compiler {
|
let mut compiler = Compiler {
|
||||||
config,
|
config,
|
||||||
data: Default::default(),
|
data: Default::default(),
|
||||||
|
Loading…
Reference in New Issue
Block a user