Latest Results
docs(es/minifier): Clarify semantic preservation policy (#12349)
**Description:**
Clarify the minifier implementation and review policy to prioritize
correctness for common usage, performance, and maintainable code. Do not
require additional defensive logic solely for monkey-patched globals or
built-ins, unusual `arguments.length` reassignment, direct-eval
bindings, or dynamic name resolution in `with`.
Keep ordinary lexical shadowing, side effects, and exceptions within the
supported assumptions in scope. Require reviewers to demonstrate an
impact on common usage or an explicit support contract for mandatory
fixes. Align execution-test guidance with this policy without
authorizing hidden failures or blanket removal of existing handling or
tests.
The policy change is limited to the minifier AGENTS.md; a required patch
changeset is included. No runtime code or tests change.
Validation:
- Passed: `cargo fmt --all`, `git diff --check`, `cargo test -p
swc_ecma_minifier`, and minifier `./scripts/exec.sh`.
- The crate tests exited successfully but emitted missing `terser`
module errors from a helper script.
- `cargo clippy --all --all-targets -- -D warnings` failed on the
existing unused `noexec_mount_in` function in
`crates/swc_native_addon/src/platform/unix.rs:117`.
**Related issue (if exists):**
Motivated by the review discussions in #12343:
- https://github.com/swc-project/swc/pull/12343#discussion_r3988684574
- https://github.com/swc-project/swc/pull/12343#discussion_r3988684592
- https://github.com/swc-project/swc/pull/12343#discussion_r3988684587 Latest Branches
-9%
0%
codex/remove-export-default-from-benchmark 0%
codex/minifier-semantic-policy © 2026 CodSpeed Technology