Skip to content

Commit 981a28e

Browse files
committed
fix(emotion): update signature
1 parent 1ef010f commit 981a28e

File tree

1 file changed

+2
-0
lines changed
  • packages/next-swc/crates/core/src

1 file changed

+2
-0
lines changed

packages/next-swc/crates/core/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,13 @@ where
244244
return None;
245245
}
246246
if let FileName::Real(path) = &file.name {
247+
let fm = cm.load_file(path).unwrap();
247248
path.to_str().map(|_| {
248249
Either::Left(
249250
turbo_binding::swc::custom_transform::emotion::EmotionTransformer::new(
250251
config.clone(),
251252
path,
253+
fm.src_hash as u32,
252254
cm,
253255
comments.clone(),
254256
),

0 commit comments

Comments
 (0)