Skip to content

Commit

Permalink
feature: @putout/minify: @putout/plugin-convert-arguments-to-rest v3.…
Browse files Browse the repository at this point in the history
…1.0 (#28)
  • Loading branch information
coderaiser committed Sep 27, 2024
1 parent 787cf00 commit 1d8e67c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"build": "madrun build",
"minify": "madrun minify"
},
"dependencies": {
"@putout/plugin-nodejs": "^12.0.0"
},
"keywords": [
"putout",
"minify",
Expand All @@ -50,7 +47,7 @@
"@putout/plugin-apply-shorthand-properties": "^5.1.0",
"@putout/plugin-apply-template-literals": "^3.0.0",
"@putout/plugin-conditions": "^5.0.0",
"@putout/plugin-convert-arguments-to-rest": "^3.0.0",
"@putout/plugin-convert-arguments-to-rest": "^3.1.0",
"@putout/plugin-convert-to-arrow-function": "^4.0.0",
"@putout/plugin-declare": "^4.0.0",
"@putout/plugin-for-of": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/fixture/convert-arguments-to-rest-fix.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/fixture/convert-arguments-to-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@
}

createElement(1, 2);

function strict() {
'use strict';

console.log(arguments[0]);
}

strict(3);
})();
2 changes: 1 addition & 1 deletion test/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ test('@putout/minify: before-init', (t) => {

test('@putout/minify: convert-arguments-to-rest', (t) => {
t.minify('convert-arguments-to-rest', {
expected: [1, 2],
expected: [1, 2, 3],
});
t.end();
});
Expand Down

0 comments on commit 1d8e67c

Please sign in to comment.