JavaScript minification addon for Ember-CLI using esbuild (SWC under the hood). Current stable version is 2.1.2, requires Node >= 18, and is actively maintained on GitHub. It replaces ember-cli-terser or ember-cli-uglify, offering faster builds via SWC. Key differentiators: seamless Ember integration, supports modern JS only (no ES5), configurable SWC minify options, source map support, and exclusion patterns.
npm install ember-cli-swc-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows configuration of ember-cli-swc-minifier in ember-cli-build.js with basic options.
Ensure your Ember-CLI version supports v2 addons and Node >= 18. Remove workspace-addon references.
Uninstall old package: npm remove ember-cli-swc-minifier; install new: npm install --save-dev @nullvoxpopuli/ember-cli-swc-minifier.
Use 'swc' property to pass ESBuild/SWC minification options. See swc.rs/docs.
Set 'sourceMap' option inside 'ember-cli-swc-minifier' config to enable source maps: { sourceMap: 'linked' }.Use output filenames like 'app.js', 'vendor.js'. No leading slash.
Ensure your Ember-CLI build targets modern browsers or transpile to ES2015+ before minification.
Run 'npm install --save-deve @nullvoxpopuli/ember-cli-swc-minifier' and update imports/config accordingly.
Ensure ember-cli-build.js exports a function that receives 'defaults' and passes it to new EmberApp().
Run 'npm install --save-dev esbuild'.
Use 'import' syntax or ensure your ember-cli-build.js is treated as ESM (e.g., .mjs extension).