@jscutlery/swc-plugin-angular

0.11.0 • Public • Published

⚡️ Angular SWC Plugin 🦀

What is this?

SWC (Speedy Web Compiler) is a lightning-fast JavaScript/TypeScript compiler, but it doesn't support Angular even when using JIT (Just-In-Time) compilation because Angular requires some additional transformations:

  • Component.templateUrl => Component.template
  • Component.styleUrls & Component.styleUrl => Component.styles
  • Additional metadata for input(), output(), viewChild(), etc...

That is when this plugin comes in. It is a SWC plugin that adds support for Angular.

Note that this plugin is not a replacement for the Angular compiler, and it won't work without the JIT compiler. This means that while it is suitable for testing, it shouldn't be used to build production applications.

Try it now with your Jest tests

Cf. @jscutlery/swc-angular-preset

Package Sidebar

Install

npm i @jscutlery/swc-plugin-angular

Weekly Downloads

259

Version

0.11.0

License

none

Unpacked Size

3.67 MB

Total Files

3

Last publish

Collaborators

  • yjaaidi
  • koalaa