Skip to content

Commit 5b9ccf5

Browse files
committed
Fix emotion
1 parent 60e9734 commit 5b9ccf5

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,12 @@ where
244244
return None;
245245
}
246246
if let FileName::Real(path) = &file.name {
247-
let fm = cm.load_file(path).unwrap();
248247
path.to_str().map(|_| {
249248
Either::Left(
250249
turbo_binding::swc::custom_transform::emotion::EmotionTransformer::new(
251250
config.clone(),
252251
path,
253-
fm.src_hash as u32,
252+
file.src_hash as u32,
254253
cm,
255254
comments.clone(),
256255
),

0 commit comments

Comments
 (0)