Skip to content

Commit c1e32fa

Browse files
authored
fix(es/quote): Replace usage of swc_atoms with swc_core::atoms (#11299)
1 parent 47c22df commit c1e32fa

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/wild-squids-cheer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
swc_core: patch
3+
swc_ecma_quote_macros: patch
4+
---
5+
6+
fix(es/quote): Replace usage of `swc_atoms` with `swc_core::atoms`

crates/swc_ecma_quote_macros/src/ast/lit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl ToCode for Atom {
4141
impl ToCode for Wtf8Atom {
4242
fn to_code(&self, _: &Ctx) -> syn::Expr {
4343
let bytes_literal = LitByteStr::new(self.as_bytes(), Span::call_site());
44-
parse_quote!(unsafe { swc_atoms::Wtf8Atom::from_bytes_unchecked(#bytes_literal) })
44+
parse_quote!(unsafe { swc_core::atoms::Wtf8Atom::from_bytes_unchecked(#bytes_literal) })
4545
}
4646
}
4747

0 commit comments

Comments
 (0)