From 2eed9f447d988eba30e921acbe54b5956f552679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 28 Feb 2021 15:44:51 +0100 Subject: [PATCH] upgrade uglifyjs, fixes #93 --- bin/prepublish.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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",