swc-project/swc · error

Bundle command is not yet implemented

Error message

Bundle command is not yet implemented

What it means

An unimplemented!() in `execute` of the bundle CLI command (swc_cli_impl commands/bundle.rs:8). The `swc bundle` subcommand is declared in clap with an empty options struct but its runner is a stub; invoking the subcommand immediately aborts with this marker. It denotes a planned-but-unbuilt CLI feature, not a runtime input problem.

Solutions

  1. Do not invoke `swc bundle`; use the supported compile path (e.g. `swc compile`) or the @swc/core bundle API
  2. Track/implement the bundle subcommand in swc_cli_impl
  3. Print a helpful 'not yet available' message instead of panicking when the subcommand is selected
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at crates/swc_cli_impl/src/commands/bundle.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/5bcd149eb021f827. Report an issue: GitHub.

Appendix: source

Thrown at crates/swc_cli_impl/src/commands/bundle.rs:8

use clap::Parser;

#[derive(Parser)]
pub struct BundleOptions {}

impl super::CommandRunner for BundleOptions {
    fn execute(&self) -> anyhow::Result<()> {
        unimplemented!("Bundle command is not yet implemented")
    }
}

View on GitHub (pinned to 5176682b65)