diff --git a/plugins/swc-plugin-canyon/package.json b/plugins/swc-plugin-canyon/package.json index f22cf2cf..67307e3c 100644 --- a/plugins/swc-plugin-canyon/package.json +++ b/plugins/swc-plugin-canyon/package.json @@ -1,6 +1,6 @@ { "name": "swc-plugin-canyon", - "version": "0.0.2-alpha.20", + "version": "0.0.2-alpha.21", "description": "A SWC plugin cooperates with istanbul to report the coverage", "main": "swc_plugin_canyon.wasm", "scripts": { diff --git a/plugins/swc-plugin-canyon/src/lib.rs b/plugins/swc-plugin-canyon/src/lib.rs index 80cec7b0..94be5857 100644 --- a/plugins/swc-plugin-canyon/src/lib.rs +++ b/plugins/swc-plugin-canyon/src/lib.rs @@ -36,6 +36,15 @@ impl VisitMut for TransformVisitor { let sha = std::env::var("CI_COMMIT_SHA").unwrap_or("-".to_string()); let projectID = std::env::var("CI_PROJECT_ID").unwrap_or("-".to_string()); + // 打印出这些 + + println!("dsn: {}", dsn); + println!("reporter: {}", reporter); + println!("instrumentCwd: {}", instrumentCwd); + println!("branch: {}", branch); + println!("sha: {}", sha); + println!("projectID: {}", projectID); + let object_lit = Expr::Object(ObjectLit { props: vec![ Prop::KeyValue(KeyValueProp {