diff --git a/packages/swc-plugin/Cargo.toml b/packages/swc-plugin/Cargo.toml index 492dd809..a61b929a 100644 --- a/packages/swc-plugin/Cargo.toml +++ b/packages/swc-plugin/Cargo.toml @@ -5,7 +5,7 @@ members = [ [profile.release] # https://swc.rs/docs/plugin/publishing#adjusting-configuration-for-smaller-binary -codegen-units = 1 +# codegen-units = 1 lto = true -opt-level = "s" -strip = "symbols" +# opt-level = "s" +# strip = "symbols" diff --git a/packages/swc-plugin/crates/pre-transform/src/lib.rs b/packages/swc-plugin/crates/pre-transform/src/lib.rs index 37773384..be36993b 100644 --- a/packages/swc-plugin/crates/pre-transform/src/lib.rs +++ b/packages/swc-plugin/crates/pre-transform/src/lib.rs @@ -125,7 +125,8 @@ impl TransformVisitor { spread: None, expr: Box::new(self.build_arg.clone()), }); - let target_index: f64 = self.target_index.into(); + let target_index: f64 = self.target_index.clone().into(); + // let target_index: f64 = self.target_index as f64; call_expr.args.push(ExprOrSpread { expr: Box::new(Expr::Lit(Lit::Num(Number::from(target_index)))), spread: None,