You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(es/helpers): Generate inline helpers from canonical ESM sources (#12006)
**Description:**
Refactor inline SWC helpers to use `packages/helpers/esm` as the
canonical source and generate Rust helper artifacts from it.
Key points:
- Removes the duplicated hand-written inline helper JS files.
- Keeps generated Rust artifacts checked in, so crate builds do not need
Node, pnpm, or repo-relative helper sources.
- Uses one generated Rust file per helper to keep diffs and ownership
local.
- Precomputes inline dependency closures during codegen, so runtime
injection only ORs bitsets.
- Uses `u128` for helper bitsets because the helper set is small,
fixed-order, dependency-free, and cache-friendly.
- Normalizes helper import/emit order to the generated table order
(`packages/helpers/esm/index.js`, currently lexicographic). Inline deps
used to expand during helper registration; this is safe because helpers
are hoisted function declarations and codegen rejects order-sensitive
preludes.
0 commit comments