diff --git a/Cargo.lock b/Cargo.lock index 02f2878..b45da3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -443,7 +443,7 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jusix" -version = "0.1.11" +version = "0.1.12" dependencies = [ "serde", "swc_core", diff --git a/Cargo.toml b/Cargo.toml index 340e943..95aed43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jusix" -version = "0.1.11" +version = "0.1.12" edition = "2021" description = "An SWC plugin that enables embedded JSX reactivity and $() shortcut function for UIX" license = "MIT" diff --git a/jusix.wasm b/jusix.wasm index a8e68ba..1bb205a 100755 Binary files a/jusix.wasm and b/jusix.wasm differ diff --git a/package.json b/package.json index 472db83..be39c4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jusix", - "version": "0.1.11", + "version": "0.1.12", "description": "", "author": "", "license": "ISC", diff --git a/src/visitor.rs b/src/visitor.rs index 9ad5966..161cdc0 100644 --- a/src/visitor.rs +++ b/src/visitor.rs @@ -3,7 +3,7 @@ use swc_core::{ common::{util::take::Take, SyntaxContext, DUMMY_SP}, ecma::{ ast::{ - ArrowExpr, BlockStmt, BlockStmtOrExpr, CallExpr, Callee, Expr, ExprOrSpread, ExprStmt, FnDecl, Ident, IdentName, JSXAttr, JSXAttrName, JSXAttrValue, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXSpreadChild, Lit, MemberExpr, MemberProp, Null, ObjectPatProp, Pat, PropName, ReturnStmt, Stmt, Str, VarDecl + ArrowExpr, BlockStmt, BlockStmtOrExpr, CallExpr, Callee, Expr, ExprOrSpread, ExprStmt, FnDecl, Ident, JSXAttr, JSXAttrName, JSXAttrValue, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXSpreadChild, Lit, MemberProp, Null, ObjectPatProp, Pat, ReturnStmt, Stmt, Str, VarDecl }, visit::{Fold, FoldWith, Visit, VisitWith}, }, @@ -25,7 +25,7 @@ impl VariableCollector { impl Visit for VariableCollector { - fn visit_jsx_element_name(&mut self, name: &JSXElementName) { + fn visit_jsx_element_name(&mut self, _name: &JSXElementName) { // ignore jsx name as identifier } diff --git a/uix-tests/common/tests.tsx b/uix-tests/common/tests.tsx index 40ebfdc..4026626 100644 --- a/uix-tests/common/tests.tsx +++ b/uix-tests/common/tests.tsx @@ -184,7 +184,7 @@ export default { }, '/test12': () => { - const showDialog = $$(false); + const showDialog = $(false); globalThis.showDialog = showDialog; return