swc-project/swc · error
Minify command is not yet implemented
Error message
Minify command is not yet implemented
What it means
An unimplemented!() in `execute` of the minify CLI command (swc_cli_impl commands/minify.rs:8). The `swc minify` subcommand parses successfully (empty options struct) but its runner is a stub, so running it aborts immediately; minification via the CLI must go through compile flags or the API until the subcommand is implemented.
Solutions
- Use `swc compile` with minify options or the @swc/core minify API instead of `swc minify`
- Implement the minify subcommand in swc_cli_impl
- Emit a clear 'not yet implemented' error message rather than panicking
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/swc_cli_impl/src/commands/minify.rs:8 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of swc-project/swc@5176682b65 (2026-08-17).
Data as JSON: /api/errors/917b8146758bc474.
Report an issue: GitHub.
Appendix: source
Thrown at crates/swc_cli_impl/src/commands/minify.rs:8
use clap::Parser;
#[derive(Parser)]
pub struct MinifyOptions {}
impl super::CommandRunner for MinifyOptions {
fn execute(&self) -> anyhow::Result<()> {
unimplemented!("Minify command is not yet implemented")
}
}
View on GitHub (pinned to 5176682b65)