Files
Donny/강동윤andGitHub 717ea8a9a2 refactor: Remove production tracing hooks (#11945)
**Description:**

This removes the production tracing implementation paths from SWC while
preserving the JS and CLI compatibility surfaces as deprecated no-ops.

- Delete the `swc_timer` and `swc_trace_macro` crates.
- Remove `swc_core`'s `trace_macro` feature and re-export.
- Remove timer and `#[swc_trace]` usages from Rust crates.
- Gate remaining tracing spans/events/instrumentation so they do not run
in release builds.
- Keep JS, Node binding, and CLI trace APIs available as deprecated
no-ops.
- Remove unused tracing subscriber/chrome dependencies and refresh
committed lockfiles.

**BREAKING CHANGE:**

The Rust crates `swc_timer` and `swc_trace_macro` are removed. The
`swc_core/trace_macro` feature is removed instead of being kept as a
compatibility alias. JS and CLI trace entrypoints remain available but
are deprecated no-ops and no trace output files are produced.

**Validation:**

- `git submodule update --init --recursive`
- `cargo fmt --all`
- `cargo check --all --all-targets`
- `cargo check --release --all --all-targets`
- `cargo clippy --all --all-targets -- -D warnings`
- `pnpm install --frozen-lockfile`
- `(cd packages/core && pnpm build:dev && pnpm test)`
- `(cd packages/minifier && pnpm build:dev && pnpm test)`
- Verified no remaining `swc_timer`, `swc_trace_macro`, `trace_macro`,
`timer!`, or `#[swc_trace]` references in source/manifests/lockfiles.

Broad `cargo test` was attempted and stopped on unrelated/environment
issues: an existing Flow fixture failure in `swc`, missing local `deno`
for `swc_bundler`, and a helper fixture diff in
`swc_ecma_transforms_base`.

**Related issue (if exists):**

N/A
2026-06-18 17:24:12 +09:00
..
2024-07-12 15:06:53 +09:00