Skip to content
S

swc-angular

This is a set of Angular presets that enable you to use SWC

by jscutleryOpen source

#1352in UI Libraries
0In stores

Description

swc-angular is a set of Angular presets that let Jest or Vitest compile Angular TypeScript with SWC (Speedy Web Compiler) instead of the def…

Highlights

  • Jest transformer that compiles Angular code with SWC
  • Vitest setup using the same SWC presets
  • Works together with the swc-angular-plugin
  • Project benchmarks show tests two to twelve times faster
  • Public source in the jscutlery devkit repository

Ratings & Reviews

No ratings yet

Be the first to rate swc-angular.

People also visit

J

jest-preset-angular

Jest configuration preset for Angular projects

UI Libraries
Launch
S

swc-angular-plugin

An SWC plugin that adds Angular support

UI Libraries
Launch
J

@jscutlery/playwright-ct-angular

Playwright Angular component testing

UI Libraries
Launch
J

jest-marbles

Helpers library for marbles testing with Jest

UI Libraries
Launch
A

angular-component

Build standalone Angular v20+ components

AI Skills
Get
N

@ngneat/svg-icon

A lightweight library that makes it easier

UI Libraries
Launch

swc-angular FAQ

What does swc-angular do?

It sets up Jest or Vitest to compile Angular TypeScript with SWC, a fast compiler, instead of the default TypeScript transformer. The project says the transform step is usually the real bottleneck in these test runs.

How much faster are the tests?

The project says switching to SWC can speed up tests by two to twelve times. Its benchmark tables cover runs with all caches disabled and cold starts, and the figures are on the project page.

How do I install it?

Install the preset and its dependencies with npm, then configure your Jest transformer or Vitest setup as the project page describes, and add reflect-metadata. The page has a step-by-step guide for each test runner.

Can it be used to build production apps?

The companion SWC plugin is meant for testing. Its page says it is not a replacement for the Angular compiler and should not be used to build production applications.

Is swc-angular open source?

Yes. The code lives in the jscutlery devkit repository on GitHub, in the packages/swc-angular folder.

What are the best swc-angular alternatives?

Popular alternatives to swc-angular include jest-preset-angular, swc-angular-plugin and @jscutlery/playwright-ct-angular. See all swc-angular alternatives

Developer Stuff

Badges