Rollup plugin for minifying ES6+ bundles using uglify-es (deprecated UglifyJS fork). Version 0.0.1, last updated in 2018, no active maintenance. Replaced by rollup-plugin-terser and @rollup/plugin-terser for better ES6+ support. Key differentiator: targeted ES6+ minification, but now obsolete as uglify-es is no longer maintained and has known bugs (e.g., mangling property names incorrectly). Alternatives should use terser instead.
npm install rollup-plugin-uglify-esVerified import paths — ran on the pinned version, not inferred.
Minify a Rollup bundle using the deprecated uglify-es plugin with default options.
Migrate to rollup-plugin-terser or @rollup/plugin-terser.
Use terser instead, which is actively maintained and supports modern syntax.
Pass sourceMap: true in options if source maps are required.
npm install uglify-es --save-dev
import uglify from 'rollup-plugin-uglify-es'; instead of import { uglify } from ...Switch to terser (rollup-plugin-terser) which supports modern syntax.