uglify-js only supports ES5 code as input.

uglify-es also supports ES6, but is buggy and has been abandoned.

terser is a maintained replacement for it that can also handle ES6+.

Answer from Dan Abramov on Stack Overflow
🌐
npm
npmjs.com › package › uglify-es
uglify-es - npm
JavaScript parser, mangler/compressor and beautifier toolkit for ES6+. Latest version: 3.3.9, last published: 8 years ago. Start using uglify-es in your project by running `npm i uglify-es`. There are 773 other projects in the npm registry using ...
      » npm install uglify-es
    
Published   Jan 27, 2018
Version   3.3.9
Author   Mihai Bazon
🌐
GitHub
github.com › rsms › uglify-es-lib
GitHub - rsms/uglify-es-lib: uglify-es as precompiled single-file library
uglify-es as precompiled single-file library. Contribute to rsms/uglify-es-lib development by creating an account on GitHub.
Author   rsms
🌐
Snyk
snyk.io › snyk vulnerability database › npm › uglify-es
uglify-es 3.3.10 vulnerabilities | Snyk
Learn more about known uglify-es 3.3.10 vulnerabilities and licenses detected.
🌐
CodeSandbox
codesandbox.io › examples › package › uglify-es
uglify-es examples - CodeSandbox
Use this online uglify-es playground to view and fork uglify-es example apps and templates on CodeSandbox.
🌐
npm Trends
npmtrends.com › grunt-contrib-uglify-vs-terser-vs-uglify-es-vs-uglify-js-vs-uglifyjs-webpack-plugin
grunt-contrib-uglify vs terser vs uglify-es vs uglify-js vs uglifyjs-webpack-plugin | npm trends
Comparing trends for grunt-contrib-uglify 5.2.2 which has 343,410 weekly downloads and 1,475 GitHub stars vs. terser 5.44.1 which has 44,488,270 weekly downloads and 9,169 GitHub stars vs. uglify-es 3.3.9 which has 1,213,536 weekly downloads and unknown number of GitHub stars vs. uglify-js 3.19.3 which has 32,013,520 weekly downloads and 13,381 GitHub stars vs. uglifyjs-webpack-plugin 2.2.0 which has 1,196,207 weekly downloads and 1,379 GitHub stars.
🌐
Skalman
skalman.github.io › UglifyJS-online
UglifyJS 3: Online JavaScript minifier
UglifyJS 3 is an excellent tool to help you minify your JavaScript!
Find elsewhere
🌐
Medium
medium.com › @dmadan86 › grunt-uglify-es6-support-93b095e738bc
Grunt uglify ES6 support - Madan - Medium
March 17, 2022 - Grunt uglify ES6 support We use grunt-contrib-uglify to ugify js files, but this modules doesn’t support ES6 syntax. But there is hope we can use harmony branch to get ES6 support npm install …
🌐
npm
npmjs.com › search
keywords:uglify-es - npm search
Grunt plugin for A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+. ... evilebottnawi• 1.2.5 • 5 years ago • 5 dependents • MITpublished version 1.2.5, 5 years ago5 dependents licensed under $MIT ... A webpack plugin to run uglifyjs in parallel.
🌐
npm
npmjs.com › search
uglify - npm search
TypeScript definitions for uglify-es · types• 3.0.3 • 2 years ago • 1 dependents • MITpublished version 3.0.3, 2 years ago1 dependents licensed under $MIT · 19,799 · uglify-js plugin for @node-minify · compressor · minify · minifier · uglify-js · srod• 9.0.1 • a year ago • 15 dependents • MITpublished version 9.0.1, a year ago15 dependents licensed under $MIT ·
🌐
GitHub
github.com › facebook › metro › issues › 980
Replace deprecated `uglify-es` dependency · Issue #980 · facebook/metro
May 15, 2023 - npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
Published   May 15, 2023
Author   TimJentzsch
🌐
npm
npmjs.com › package › gulp-uglify-es
gulp-uglify-es - npm
July 26, 2021 - let gulp = require("gulp"); let rename = require("gulp-rename"); var sourcemaps = require('gulp-sourcemaps'); let uglify = require('gulp-uglify-es').default; gulp.task("uglify", function () { return gulp.src("lib/bundle.js") .pipe(rename("bundle.min.js")) .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(sourcemaps.write()) // Inline source maps.
      » npm install gulp-uglify-es
    
Published   Jul 26, 2021
Version   3.0.0
Author   Itay Ronen
🌐
jsDelivr
cdn.jsdelivr.net › uglify-es-loader@3.0.4
uglify-es-loader CDN by jsDelivr - A free, fast, and reliable Open Source CDN
uglify-es-loader CDN by jsDelivr - A free, fast, and reliable Open Source CDN for npm and GitHub
🌐
UNPKG
app.unpkg.com › gulp-uglify-es@0.1.5 › files › README.md
gulp-uglify-es
## Install npm install --save-dev gulp-uglify-es ## Usage gulpfile.js ```js let gulp = require("gulp"); let rename = require("gulp-rename"); let uglify = require('gulp-uglify-es').default; gulp.task("uglify", function () { return gulp.src("lib/bundle.js") .pipe(uglify(/* options */)) .pipe(rename("bundle.min.js")) .pipe(gulp.dest("lib/")); }); ``` For documentation about the options-object, See [Uglify API Reference](https://www.npmjs.com/package/uglify-es#API_Reference).
🌐
Jahed
jahed.dev › 2018 › 05 › 06 › babel-uglifyjs-pains
Babel and UglifyJS Pains
May 6, 2018 - Now that the bundled code has ES6 syntax, we need to use uglify-es. A version of UglifyJS which supports such syntax.
🌐
jsDelivr
jsdelivr.com › package › npm › uglify-es-brunch
uglify-es-brunch CDN by jsDelivr - A CDN for npm and GitHub
February 20, 2018 - A free, fast, and reliable CDN for uglify-es-brunch. Adds Uglify ES minifying support to brunch.
Published   Sep 12, 2017
🌐
npm Trends
npmtrends.com › uglify-es-vs-uglify-js
uglify-es vs uglify-js | npm trends
Comparing trends for uglify-es 3.3.9 which has 504,858 weekly downloads and unknown number of GitHub stars vs. uglify-js 3.19.3 which has 40,183,082 weekly downloads and 13,412 GitHub stars.
🌐
HTML5 Game Devs
html5gamedevs.com › frameworks › babylon.js › questions & answers
Uglify for ES6
February 22, 2018 - I have begun migration of all my stuff away from Eclipse back to Netbeans. The support for the Eclipse Typescript add-in has not worked for a while. I have been using Gulp to actually do any building. Netbeans editor for Typescript is much better, & importantly being updated / improved. Cordo...