Skip to content

Commit

Permalink
upgrade to uglify-js 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl authored and XhmikosR committed Dec 24, 2017
1 parent 04494d9 commit 6db68bd
Show file tree
Hide file tree
Showing 29 changed files with 37 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"chalk": "^1.0.0",
"maxmin": "^1.1.0",
"uglify-js": "~3.2.0",
"uglify-js": "~3.3.0",
"uri-path": "^1.0.0"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/expected/beautify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var longNameA = 1, longNameB = 2;

function longFunctionC(n, o) {
return longNameA + longNameB + n + o;
}

var longNameA = 1, longNameB = 2, result = longFunctionC(3, 4);
var result = longFunctionC(3, 4);
6 changes: 3 additions & 3 deletions test/fixtures/expected/comments.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function foo(){return 42}function bar(){return 2*foo()}/* @preserve
function foo(){return 42}function bar(){return 2*foo()}
/* @preserve
* multiline preserve
*/
/* @license
* multiline license
*/
function baz(){return bar()*bar()}
*/function baz(){return bar()*bar()}
6 changes: 3 additions & 3 deletions test/fixtures/expected/commentsWithImportant.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
function foo(){return 42}
// @preserve preserve
// @license license
function bar(){return 2*foo()}/* @preserve
function bar(){return 2*foo()}
/* @preserve
* multiline preserve
*/
/* @license
* multiline license
*/
function baz(){return bar()*bar()}
*/function baz(){return bar()*bar()}
2 changes: 1 addition & 1 deletion test/fixtures/expected/compress.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/compress_explicit.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/compress_mangle.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/compress_mangle_banner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// banner without sourcemap

function longFunctionC(n,o){return longNameA+longNameB+n+o}var longNameA=1,longNameB=2,result=longFunctionC(3,4);
var longNameA=1,longNameB=2;function longFunctionC(n,o){return longNameA+longNameB+n+o}var result=longFunctionC(3,4);
4 changes: 3 additions & 1 deletion test/fixtures/expected/compress_mangle_beautify.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
var longNameA = 1, longNameB = 2;

function longFunctionC(n, o) {
return longNameA + longNameB + n + o;
}

var longNameA = 1, longNameB = 2, result = longFunctionC(3, 4);
var result = longFunctionC(3, 4);
// This is a footer.
2 changes: 1 addition & 1 deletion test/fixtures/expected/compress_mangle_except.js

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

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/multifile.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/source_map_custom_name
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":3,"sources":["../test/fixtures/src/simple.js"],"names":["longFunctionC","argumentC","argumentD","longNameA","longNameB","result"],"mappings":"AAOA,SAASA,cAAcC,EAAUC,GAC/B,OAAOC,UAAYC,UAAYH,EAAYC,EAL7C,IAAIC,UAAY,EAEZC,UAAY,EAMZC,OAASL,cAAc,EAAE","file":"sourcemap_customName.js"}
{"version":3,"sources":["../test/fixtures/src/simple.js"],"names":["longNameA","longNameB","longFunctionC","argumentC","argumentD","result"],"mappings":"AAGA,IAAIA,UAAY,EAEZC,UAAY,EAEhB,SAASC,cAAcC,EAAUC,GAC/B,OAAOJ,UAAYC,UAAYE,EAAYC,EAG7C,IAAIC,OAASH,cAAc,EAAE","file":"sourcemap_customName.js"}
2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_basic.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_basic.js.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customDir.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customName.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customRoot.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customRoot.js.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customUrl.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_customUrl.js.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_functionName.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_functionName.js.fn.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemap_sources.js.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemaps_multiple1.js

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemaps_multiple1.js.map

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/sourcemaps_multiple1_fnName.js

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

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

2 changes: 1 addition & 1 deletion test/fixtures/expected/wrap.js

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

0 comments on commit 6db68bd

Please sign in to comment.