mirror of
https://github.com/swc-project/swc.git
synced 2024-10-04 04:07:18 +03:00
fix(es/utils): Use $crate
for quote_ident!()
(#9309)
**Related issue:** - Closes https://github.com/swc-project/swc/issues/9299
This commit is contained in:
parent
9d983c3864
commit
bdaaf47cb4
6
.changeset/unlucky-planets-laugh.md
Normal file
6
.changeset/unlucky-planets-laugh.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
swc_ecma_utils: patch
|
||||
swc_core: patch
|
||||
---
|
||||
|
||||
fix(es/utils): Use `$crate` for `quote_ident!()`
|
1
.github/workflows/CI.yml
vendored
1
.github/workflows/CI.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
merge_group:
|
||||
pull_request:
|
||||
types: ["opened", "reopened", "synchronize"]
|
||||
push:
|
||||
|
@ -24,7 +24,7 @@ macro_rules! quote_ident {
|
||||
($ctxt:expr, $s:expr) => {{
|
||||
let sym: $crate::swc_atoms::Atom = $s.into();
|
||||
let id: $crate::swc_ecma_ast::Ident =
|
||||
$crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt);
|
||||
$crate::swc_ecma_ast::Ident::new(sym, $crate::swc_common::DUMMY_SP, $ctxt);
|
||||
|
||||
id
|
||||
}};
|
||||
|
Loading…
Reference in New Issue
Block a user