Latest Results
feat(dbg-swc): add flow strip verification command (#11706)
## Summary
- add a new Flow debug command group under `dbg-swc es flow`
- add `dbg-swc es flow strip <path>` to verify Flow strip behavior for
user-provided file/directory inputs
- map Flow parser options from CLI flags (`--jsx`, `--all`,
`--require-directive`, `--enums`, `--decorators`, `--components`,
`--pattern-matching`)
- run per-file verification pipeline: parse as Flow -> strip -> emit ->
reparse as ES -> check `__flow_` leakage
- collect all failures and print stage-based summaries (`parse`,
`strip`, `reparse`, `leak`) before returning non-zero
- add unit tests for flag mapping, recursive `.js/.jsx` collection, and
a minimal Flow strip success case
- enable `flow` feature for `swc_ecma_parser` and add
`swc_ecma_transforms_typescript` dependency in `dbg-swc`
## Testing
- `cargo fmt --all`
- `cargo test -p dbg-swc`
- `cargo clippy --all --all-targets -- -D warnings`
- `cargo run -p dbg-swc -- es flow strip --help`
- `cargo run -p dbg-swc -- es flow strip
crates/swc/tests/fixture/flow-strip/input`
- `cargo run -p dbg-swc -- es flow strip
crates/swc/tests/fixture/flow-strip/input/index.js --jsx` Active Branches
0%
0%
0%
© 2026 CodSpeed Technology