Socket
Socket
Sign inDemoInstall

@jscutlery/swc-plugin-angular

Package Overview
Dependencies
0
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jscutlery/swc-plugin-angular

## What is this?


Version published
Weekly downloads
308
increased by0.98%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

⚡️ 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

Keywords

FAQs

Package last updated on 04 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc