Latest Results
refactor: replace match(boolean) with native ts-pattern or if/else
Sweep the codebase for the match(boolean) antipattern where ts-pattern
was being fed a derived comparison or a bare boolean variable. Replaced
with one of:
- match on the underlying value (e.g. match(parts.length > 1) becomes
inlined if/else; match(targets.length > 0) becomes match(targets).with([], ...))
- match on the parent object via property pattern
(e.g. match(params.compile) becomes match(params).with({ compile: true }, ...))
- straight if/else for simple boolean variables
Files touched (14): bundler/build/config, bundler/utils/clean,
bundler/utils/format-error, cli/commands/build, cli/lib/template-versions,
core/autoload, core/lib/format/code-frame, core/middleware/config/config,
core/middleware/icons/context, core/middleware/icons/install,
core/runtime/register, core/stories/check, core/ui/keys.
Co-Authored-By: Claude <noreply@anthropic.com>fix/windows-compatibility Latest Branches
-1%
feat/sidecar-binary-support 0%
fix/windows-compatibility -1%
fix/build-verbose-and-debug-env © 2026 CodSpeed Technology