mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
## Summary - add real long-running `swc compile --watch` support with incremental `--out-dir` updates and `--out-file` rebuilds - add `--copy-files` and `--strip-leading-paths` to the Rust CLI - normalize `--out-dir` path resolution, including absolute inputs, and cover the regressions with issue tests ## Why Issue #4017 called out a few gaps in the Rust CLI compared to the older behavior: `--watch` was exposed but did not actually keep running, compatibility flags for copying files and stripping leading paths were missing, and `out-dir` path handling regressed for some inputs. This keeps the current default `dist/src/...` layout while restoring the requested compatibility options and watch behavior. ## Validation - `git submodule update --init --recursive` - `cargo fmt --all` - `cargo test -p swc_cli_impl` - `cargo clippy --all --all-targets -- -D warnings` Fixes #4017