Skip to content

Commit 05c369e

Browse files
committed
fix(uglify): stick with uglify-js which is the one that stays updated
1 parent fed1ee5 commit 05c369e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/client/bundler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var fs = require('fs'),
88
CleanCSS = require('clean-css'),
99
system = require('../system'),
1010
magicPath = require('../magic_path'),
11-
uglifyjs = require('uglify-js2');
11+
uglifyjs = require('uglify-js');
1212

1313
/**
1414
* {const|local|start|lib|mod} AssetType

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@
3838
"escape-html": "1.0.2",
3939
"eventemitter2": "= 0.4.14",
4040
"express-session": "1.11.3",
41+
"minimatch": "2.0.10",
4142
"orchestrator": "0.3.7",
4243
"parseurl": "1.3.0",
4344
"redis": "0.12.1",
4445
"send": "0.13.0",
4546
"serve-favicon": "2.3.0",
4647
"serve-static": "1.10.0",
4748
"shortid": "2.2.2",
48-
"uglify-js2": "2.1.11",
49+
"uglify-js": "2.4.24",
4950
"uid2": "0.0.3",
5051
"utils-merge": "1.0.0"
5152
},
@@ -101,6 +102,5 @@
101102
},
102103
"bin": {
103104
"socketstream": "./bin/socketstream"
104-
},
105-
"license":"MIT"
105+
}
106106
}

test/unit/client/formatters.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ var ss = require( '../../fixtures/socketstream'),
174174
logHook.on();
175175
ss.api.bundler.packAssetSet('js', client,
176176
function(files) {
177-
files[3].content.should.equal('require.define("/client/abc/index",function(){window.a="formatter index.a"});');
178-
// var outs =
177+
files[3].content.should.equal('require.define("/client/abc/index",function(e,i,n,a,d){window.a="formatter index.a"});');
178+
// var outs =
179179
logHook.off();
180180
//outs.should.match(/Minified .\/abc\/index.a from 0.121 KB to 0.076 KB/);
181181
},

0 commit comments

Comments
 (0)