{"id":22269,"library":"rollup-plugin-uglify-es","title":"rollup-plugin-uglify-es","description":"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.","status":"deprecated","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/ezekielchentnik/rollup-plugin-uglify-es","tags":["javascript","rollup","rollup-plugin","uglify-es","minify"],"install":[{"cmd":"npm install rollup-plugin-uglify-es","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-uglify-es","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-uglify-es","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Provides the minification engine; used to minify ES6+ code but is deprecated and unmaintained.","package":"uglify-es","optional":false}],"imports":[{"note":"The plugin exports a default function, not a named export.","wrong":"import { uglify } from 'rollup-plugin-uglify-es';","symbol":"default","correct":"import uglify from 'rollup-plugin-uglify-es';"},{"note":"Standard Rollup import; not part of this plugin but required for usage.","wrong":null,"symbol":"rollup","correct":"import { rollup } from 'rollup';"}],"quickstart":{"code":"import { rollup } from 'rollup';\nimport uglify from 'rollup-plugin-uglify-es';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    uglify()\n  ]\n});\n\nawait bundle.write({ file: 'bundle.min.js', format: 'cjs' });","lang":"javascript","description":"Minify a Rollup bundle using the deprecated uglify-es plugin with default options."},"warnings":[{"fix":"Migrate to rollup-plugin-terser or @rollup/plugin-terser.","message":"rollup-plugin-uglify-es is deprecated and no longer maintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use terser instead, which is actively maintained and supports modern syntax.","message":"uglify-es has known bugs (e.g., property mangling errors) and is not compatible with modern JavaScript (ES2020+).","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Pass sourceMap: true in options if source maps are required.","message":"The plugin does not support source maps out of the box; additional configuration may be needed.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install uglify-es --save-dev","cause":"uglify-es is not installed or missing from node_modules.","error":"Error: Could not resolve 'uglify-es'"},{"fix":"import uglify from 'rollup-plugin-uglify-es'; instead of import { uglify } from ...","cause":"Incorrect import style - using named import instead of default import.","error":"TypeError: uglify is not a function"},{"fix":"Switch to terser (rollup-plugin-terser) which supports modern syntax.","cause":"uglify-es does not support newer JavaScript syntax (e.g., optional chaining).","error":"SyntaxError: Unexpected token: punc (.)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}