Skip to content

Commit

Permalink
fix(emotion): update signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Apr 7, 2023
1 parent 1ef010f commit 981a28e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next-swc/crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
),
Expand Down

0 comments on commit 981a28e

Please sign in to comment.