Skip to content

Commit 6db68bd

Browse files
alexlamslXhmikosR
authored andcommitted
upgrade to uglify-js 3.3.0
1 parent 04494d9 commit 6db68bd

29 files changed

+37
-33
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"chalk": "^1.0.0",
2020
"maxmin": "^1.1.0",
21-
"uglify-js": "~3.2.0",
21+
"uglify-js": "~3.3.0",
2222
"uri-path": "^1.0.0"
2323
},
2424
"devDependencies": {

test/fixtures/expected/beautify.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
var longNameA = 1, longNameB = 2;
2+
13
function longFunctionC(n, o) {
24
return longNameA + longNameB + n + o;
35
}
46

5-
var longNameA = 1, longNameB = 2, result = longFunctionC(3, 4);
7+
var result = longFunctionC(3, 4);

test/fixtures/expected/comments.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
function foo(){return 42}function bar(){return 2*foo()}/* @preserve
1+
function foo(){return 42}function bar(){return 2*foo()}
2+
/* @preserve
23
* multiline preserve
34
*/
45
/* @license
56
* multiline license
6-
*/
7-
function baz(){return bar()*bar()}
7+
*/function baz(){return bar()*bar()}

test/fixtures/expected/commentsWithImportant.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
function foo(){return 42}
55
// @preserve preserve
66
// @license license
7-
function bar(){return 2*foo()}/* @preserve
7+
function bar(){return 2*foo()}
8+
/* @preserve
89
* multiline preserve
910
*/
1011
/* @license
1112
* multiline license
12-
*/
13-
function baz(){return bar()*bar()}
13+
*/function baz(){return bar()*bar()}

test/fixtures/expected/compress.js

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

test/fixtures/expected/compress_explicit.js

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

test/fixtures/expected/compress_mangle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// banner without sourcemap
22

3-
function longFunctionC(n,o){return longNameA+longNameB+n+o}var longNameA=1,longNameB=2,result=longFunctionC(3,4);
3+
var longNameA=1,longNameB=2;function longFunctionC(n,o){return longNameA+longNameB+n+o}var result=longFunctionC(3,4);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
var longNameA = 1, longNameB = 2;
2+
13
function longFunctionC(n, o) {
24
return longNameA + longNameB + n + o;
35
}
46

5-
var longNameA = 1, longNameB = 2, result = longFunctionC(3, 4);
7+
var result = longFunctionC(3, 4);
68
// This is a footer.

test/fixtures/expected/compress_mangle_except.js

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

0 commit comments

Comments
 (0)