File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/@intlayer/swc/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use base62::encode as base62_encode;
26
26
use twox_hash:: XxHash64 ;
27
27
28
28
29
- static DEBUG_LOG : bool = true ;
29
+ static DEBUG_LOG : bool = false ;
30
30
31
31
32
32
// ─────────────────────────────────────────────────────────────────────────────
@@ -91,6 +91,8 @@ impl<'a> TransformVisitor<'a> {
91
91
92
92
static PACKAGE_LIST : LazyLock < Vec < Atom > > = LazyLock :: new ( || {
93
93
[
94
+ "intlayer" ,
95
+ "@intlayer/core" ,
94
96
"react-intlayer" ,
95
97
"react-intlayer/client" ,
96
98
"react-intlayer/server" ,
@@ -158,7 +160,7 @@ impl<'a> VisitMut for TransformVisitor<'a> {
158
160
}
159
161
_ => return ,
160
162
} ;
161
- if callee_ident != "useIntlayer" {
163
+ if callee_ident != "useIntlayer" && callee_ident != "getIntlayer" {
162
164
return ;
163
165
}
164
166
You can’t perform that action at this time.
0 commit comments