diff --git a/packages/next-swc/crates/core/src/lib.rs b/packages/next-swc/crates/core/src/lib.rs index e363144230832..a34e85f0168de 100644 --- a/packages/next-swc/crates/core/src/lib.rs +++ b/packages/next-swc/crates/core/src/lib.rs @@ -244,11 +244,13 @@ where return None; } if let FileName::Real(path) = &file.name { + let fm = cm.load_file(path).unwrap(); path.to_str().map(|_| { Either::Left( turbo_binding::swc::custom_transform::emotion::EmotionTransformer::new( config.clone(), path, + fm.src_hash as u32, cm, comments.clone(), ),