Skip to content

Commit

Permalink
feature: @putout/minify: @putout/plugin-remove-unreferenced-variables…
Browse files Browse the repository at this point in the history
… v4.0.0 (#23)
  • Loading branch information
coderaiser committed Jun 10, 2024
1 parent a952dcf commit d5dae16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@putout/plugin-remove-empty": "^12.1.0",
"@putout/plugin-remove-nested-blocks": "^6.3.0",
"@putout/plugin-remove-unreachable-code": "^1.2.0",
"@putout/plugin-remove-unreferenced-variables": "^3.0.0",
"@putout/plugin-remove-unreferenced-variables": "^4.0.0",
"@putout/plugin-remove-unused-expressions": "^8.0.0",
"@putout/plugin-remove-unused-variables": "^9.0.0",
"@putout/plugin-remove-useless-arguments": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/fixture/remove-unreferenced-variables-fix.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let a;a=5;console.log(a);
let a;a=5;console.log(a);function b(){}console.log(type,b);
8 changes: 7 additions & 1 deletion test/fixture/remove-unreferenced-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ let b;
a = 5;
b = 6;

console.log(a);
console.log(a);

function runUpdates() {
let t = 1;
1 ? (t = 0) : 1;
}
console.log(type, runUpdates)

0 comments on commit d5dae16

Please sign in to comment.