Skip to content

Commit 2eed9f4

Browse files
committed
upgrade uglifyjs, fixes #93
1 parent 522bc7f commit 2eed9f4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bin/prepublish.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ var path = require('path');
77

88
var uglify = spawn(
99
process.execPath,
10-
[require.resolve('uglify-js/bin/uglifyjs'), '--wrap-iife', '-c', 'side_effects=false,screw_ie8=false', '--verbose', '--ie8', '--passes=5', '-m', '--source-map', '--', '-']
10+
[require.resolve('uglify-js/bin/uglifyjs'), '-c', 'unused=false,expression=true', '--ie8', '-m'],
11+
{
12+
stdio: ['pipe', 'pipe', 'inherit']
13+
}
1114
);
1215

1316
fs.createReadStream(path.join(__dirname, '..', 'prelude.js'))

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"convert-source-map": "~1.1.0",
2020
"parse-base64vlq-mappings": "~0.1.1",
2121
"tap": "^10.7.2",
22-
"uglify-js": "^2.8.29"
22+
"uglify-js": "^3.12.8"
2323
},
2424
"scripts": {
2525
"test": "tap test/*.js",

0 commit comments

Comments
 (0)