{"id":25215,"library":"ember-cli-esbuild-minifier","title":"ember-cli-esbuild-minifier","description":"Ember-CLI addon that integrates esbuild for JavaScript minification in production builds. Current stable version is 6.1.0 (July 2024), with active development releasing new versions weekly or monthly. Replaces ember-cli-terser or ember-cli-uglify with faster minification using esbuild. Supports configurable options including exclusion patterns, source maps (linked, external, inline, both), and esbuild target specification. Does not support ES5 target. Communicates via ESBuild's workerpool.","status":"active","version":"6.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/nullvoxpopuli/ember-cli-esbuild","tags":["javascript","ember-addon"],"install":[{"cmd":"npm install ember-cli-esbuild-minifier","lang":"bash","label":"npm"},{"cmd":"yarn add ember-cli-esbuild-minifier","lang":"bash","label":"yarn"},{"cmd":"pnpm add ember-cli-esbuild-minifier","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core minification engine","package":"esbuild","optional":false},{"reason":"Manages parallel minification workers","package":"workerpool","optional":false}],"imports":[{"note":"Package is an Ember addon; it hooks into the build pipeline automatically. No manual import required.","wrong":"const minifier = require('ember-cli-esbuild-minifier')","symbol":"ember-cli-esbuild","correct":"// No import needed; addon hooks automatically after installation"},{"note":"Configuration key is 'ember-cli-esbuild' (not the package name with '-minifier'). Options go inside EmberApp constructor.","wrong":"new EmberApp({ 'ember-cli-esbuild-minifier': { ... } })","symbol":"EmberApp config","correct":"new EmberApp({ 'ember-cli-esbuild': { enabled: true, target: 'es2020' } })"},{"note":"ES5 targeting is not supported by esbuild. Use at least ES2015. target can be string or string[].","wrong":"target: 'es5'","symbol":"target option","correct":"target: ['es2020']"}],"quickstart":{"code":"// In your Ember app's ember-cli-build.js\nlet app = new EmberApp(defaults, {\n  'ember-cli-esbuild': {\n    enabled: true,\n    exclude: ['vendor.js'],\n    target: 'es2020',\n    sourceMap: 'external'\n  }\n});\n\nmodule.exports = app.toTree();","lang":"javascript","description":"Configures esbuild minification for production builds, excluding vendor.js, targeting ES2020, and generating external source maps."},"warnings":[{"fix":"Use 'target' option with a minimum of ES2015. For ES5 support, continue using ember-cli-terser.","message":"ES5 targeting is not supported by esbuild.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use the correct config key in ember-cli-build.js: new EmberApp({ 'ember-cli-esbuild': { ... } })","message":"Configuration key is 'ember-cli-esbuild' not 'ember-cli-esbuild-minifier'.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run npm uninstall ember-cli-terser ember-cli-uglify before installing this addon.","message":"Remove 'ember-cli-terser' or 'ember-cli-uglify' before installing to avoid conflicts.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Add sourcemaps config: new EmberApp({ sourcemaps: { enabled: true, extensions: ['js'] } })","message":"Source maps disabled by default; must enable in ember-cli-build.js.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Set sourceMap: false instead of sourceMap: 'none'.","message":"Source map option 'none' is deprecated; use false instead.","severity":"deprecated","affected_versions":">=6.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install as '@nullvoxpopuli/ember-cli-esbuild' and configure in ember-cli-build.js under 'ember-cli-esbuild' key.","cause":"Package is named '@nullvoxpopuli/ember-cli-esbuild' on npm, not 'ember-cli-esbuild-minifier'.","error":"Cannot find module 'ember-cli-esbuild-minifier'"},{"fix":"Ensure ember-cli-build.js ends with module.exports = app.toTree();","cause":"Misconfiguration or missing module.exports = app.toTree() in ember-cli-build.js.","error":"The Brocfile returned undefined, which is not a valid Broccoli tree."},{"fix":"Set target to at least 'es2022' or a modern browser that supports top-level await.","cause":"Target set too low (e.g., 'es2015') but code uses top-level await.","error":"ESBuild error: Top-level await is not available in the configured target environment"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}