Switch to SWC for faster transpilation #21

Closed
opened 2026-03-01 16:30:19 +00:00 by irammini · 0 comments
irammini commented 2026-03-01 16:30:19 +00:00 (Migrated from github.com)

Context

Currently, the project uses tsc for both transpilation and type-checking. As the codebase grows, this slows down development and CI/CD pipelines.

Proposal

I propose migrating the transpilation layer to SWC (Rust-based, significantly faster) while keeping tsc --noEmit exclusively for type-checking.

Benefits

  • Performance: Drastically faster build times.
  • Type Safety: Retains full TypeScript validation without the overhead of file emission.
  • Modernization: Leverages high-performance tooling common in the ecosystem.

To-do

  1. Add @swc/core and @swc/cli dependencies.
  2. Configure .swcrc to match current tsconfig.json settings.
  3. Update package.json scripts:
  • build: Run swc for output.
  • typecheck: Run tsc --noEmit.
### **Context** Currently, the project uses `tsc` for both transpilation and type-checking. As the codebase grows, this slows down development and CI/CD pipelines. ### **Proposal** I propose migrating the transpilation layer to **SWC** (Rust-based, significantly faster) while keeping **`tsc --noEmit`** exclusively for type-checking. ### **Benefits** * **Performance:** Drastically faster build times. * **Type Safety:** Retains full TypeScript validation without the overhead of file emission. * **Modernization:** Leverages high-performance tooling common in the ecosystem. ### **To-do** 1. Add `@swc/core` and `@swc/cli` dependencies. 2. Configure `.swcrc` to match current `tsconfig.json` settings. 3. Update `package.json` scripts: * `build`: Run `swc` for output. * `typecheck`: Run `tsc --noEmit`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
codetease/mep#21
No description provided.