Skip to content

Commit

Permalink
feat(swc-plugin-canyon): update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Oct 22, 2024
1 parent e2cf807 commit 1b2a0a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/swc-plugin-canyon/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
9 changes: 9 additions & 0 deletions plugins/swc-plugin-canyon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1b2a0a4

Please sign in to comment.