Skip to content

Commit 08fc98e

Browse files
committed
feature: @putout/minify: @putout/plugin-declare v8.4.0 (#32)
1 parent aa0c372 commit 08fc98e

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@putout/plugin-arguments": "^2.1.0",
5151
"@putout/plugin-conditions": "^9.0.2",
5252
"@putout/plugin-convert-to-arrow-function": "^5.0.1",
53-
"@putout/plugin-declare": "^8.0.0",
53+
"@putout/plugin-declare": "^8.4.0",
5454
"@putout/plugin-destructuring": "^2.0.0",
5555
"@putout/plugin-esm": "^10.0.0",
5656
"@putout/plugin-for-of": "^12.0.0",

test/fixture/shorthand-fix.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixture/shorthand.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
Object.defineProperty(require, '__esModule', {value: true});
4+
require.require = require;
5+
const a = require('hello');
6+
7+
console.log(a);
8+
9+
function require(a) {
10+
return a;
11+
}

test/minify.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,3 +591,10 @@ test('@putout/minify: for-each-destructuring', (t) => {
591591
});
592592
t.end();
593593
});
594+
595+
test('@putout/minify: shorthand', (t) => {
596+
t.minify('shorthand', {
597+
expected: ['hello'],
598+
});
599+
t.end();
600+
});

0 commit comments

Comments
 (0)