diff --git a/bin/prepublish.js b/bin/prepublish.js index e3ef5dd..ac8b01a 100755 --- a/bin/prepublish.js +++ b/bin/prepublish.js @@ -7,7 +7,10 @@ var path = require('path'); var uglify = spawn( process.execPath, - [require.resolve('uglify-js/bin/uglifyjs'), '--wrap-iife', '-c', 'side_effects=false,screw_ie8=false', '--verbose', '--ie8', '--passes=5', '-m', '--source-map', '--', '-'] + [require.resolve('uglify-js/bin/uglifyjs'), '-c', 'unused=false,expression=true', '--ie8', '-m'], + { + stdio: ['pipe', 'pipe', 'inherit'] + } ); fs.createReadStream(path.join(__dirname, '..', 'prelude.js')) diff --git a/package.json b/package.json index 25e1f63..6eb637c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "convert-source-map": "~1.1.0", "parse-base64vlq-mappings": "~0.1.1", "tap": "^10.7.2", - "uglify-js": "^2.8.29" + "uglify-js": "^3.12.8" }, "scripts": { "test": "tap test/*.js",