Skip to content

Commit

Permalink
feature: @putout/minify: @putout/printer v8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 9, 2024
1 parent 765c2ea commit eaa559b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ export const minify = (source, options) => {
space: '',
indent: '',
splitter: ' ',
roundBraceOpen: '',
roundBraceClose: '',
endOfFile: '',
},
semantics: {
comments: false,
roundBraces: false,
},
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@putout/plugin-reuse-duplicate-init": "^5.0.0",
"@putout/plugin-simplify-ternary": "^7.0.0",
"@putout/plugin-types": "^3.0.0",
"@putout/printer": "^7.4.0",
"@putout/printer": "^8.0.0",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.1",
"@rollup/plugin-json": "^6.0.0",
Expand Down
1 change: 1 addition & 0 deletions test/fixture/return-arrow-fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function c(n){return s=>s.b*n}
1 change: 1 addition & 0 deletions test/fixture/return-arrow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function c(n) {return (s)=>s.b*n}
5 changes: 5 additions & 0 deletions test/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ test('@putout/minify: const', (t) => {
t.end();
});

test('@putout/minify: return-arrow', (t) => {
t.minify('return-arrow');
t.end();
});

test('@putout/minify: mangle: disabled', (t) => {
t.minify('mangle-disabled', {
mangle: false,
Expand Down

0 comments on commit eaa559b

Please sign in to comment.