Skip to content
S

swc-angular-plugin

An SWC plugin that adds Angular support

by jscutleryOpen source

#1353in UI Libraries
0In stores

Description

swc-angular-plugin is an SWC plugin that adds Angular support to SWC, the fast JavaScript and TypeScript compiler. SWC does not handle Angul…

Highlights

  • Rewrites templateUrl into an inline template
  • Converts styleUrls and styleUrl into inline styles
  • Adds metadata for input(), output() and viewChild()
  • Runs inside SWC, the fast JavaScript and TypeScript compiler
  • Intended for tests, not production builds

Ratings & Reviews

No ratings yet

Be the first to rate swc-angular-plugin.

People also visit

S

swc-angular

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

UI Libraries
Launch
N

@ngneat/svg-icon

A lightweight library that makes it easier

UI Libraries
Launch
J

@jscutlery/playwright-ct-angular

Playwright Angular component testing

UI Libraries
Launch
N

ng-packagr

Compile and package Angular libraries in Angular Package Format (APF)

UI Libraries
Launch
N

ngx-slider

Self-contained, mobile friendly slider component

UI Libraries
Launch
N

ngx-slick-carousel

Angular 17+ wrapper for slick plugin

UI Libraries
Launch

swc-angular-plugin FAQ

What is this plugin for?

It is an SWC plugin that makes SWC understand Angular components. Without it, SWC compiles TypeScript fast but misses the Angular transforms the framework needs.

Can I use it to build my app?

No. The project says it is suitable for testing and should not be used to build production applications, because it is not a replacement for the Angular compiler.

What does it need to work?

It needs Angular's JIT (just-in-time) compiler. For Jest tests, the companion swc-angular package provides the presets that use this plugin.

Which Angular features does it handle?

It converts templateUrl and styleUrls or styleUrl into inline template and styles, and adds metadata for input(), output() and viewChild().

Where is the source code?

It is in the jscutlery devkit repository on GitHub, in the packages/swc-angular-plugin folder.

What are the best swc-angular-plugin alternatives?

Popular alternatives to swc-angular-plugin include swc-angular, @ngneat/svg-icon and @jscutlery/playwright-ct-angular. See all swc-angular-plugin alternatives

Developer Stuff

Badges