Use uglify-es for ES6 support (#6402)

v1.18.x
Peter Jaszkowiak 7 years ago committed by Julian Lam
parent 585d613d4b
commit a00f1f9a81

@ -100,7 +100,7 @@
"spdx-license-list": "^3.0.1",
"spider-detector": "1.0.18",
"toobusy-js": "^0.5.1",
"uglify-js": "^3.3.4",
"uglify-es": "^3.3.9",
"validator": "9.2.0",
"winston": "^2.4.0",
"xml": "^1.0.1",

@ -8,7 +8,7 @@ var path = require('path');
var childProcess = require('child_process');
var less = require('less');
var async = require('async');
var uglify = require('uglify-js');
var uglify = require('uglify-es');
var nconf = require('nconf');
var Benchpress = require('benchpressjs');

@ -2,7 +2,7 @@
var fs = require('fs');
var os = require('os');
var uglifyjs = require('uglify-js');
var uglify = require('uglify-es');
var async = require('async');
var winston = require('winston');
var less = require('less');
@ -178,7 +178,7 @@ function minifyJS_batch(data, callback) {
scripts[filename] = file;
try {
var minified = uglifyjs.minify(scripts, {
var minified = uglify.minify(scripts, {
sourceMap: {
filename: filename,
url: filename + '.map',
@ -229,7 +229,7 @@ function minifyJS(data, callback) {
scripts[ref.filename] = ref.source;
});
var minified = uglifyjs.minify(scripts, {
var minified = uglify.minify(scripts, {
sourceMap: {
filename: data.filename,
url: data.filename + '.map',

Loading…
Cancel
Save