Skip to content

Commit

Permalink
feature: @putout/minify: convert-return-to-sequence-expression (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 7, 2024
1 parent b7d0f44 commit 7053bad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixture/convert-return-to-sequence-expression-fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
()=>{d();return 1};
3 changes: 3 additions & 0 deletions test/fixture/convert-return-to-sequence-expression.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
() => {
d(); return 1;
};
5 changes: 5 additions & 0 deletions test/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ test('@putout/minify: convert-strict-equal-equal', (t) => {
t.end();
});

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

test('@putout/minify: remove-unreferenced-variables: bundle', (t) => {
t.minify('remove-unreferenced-variables', {
bundle: true,
Expand Down

0 comments on commit 7053bad

Please sign in to comment.