@jscutlery/swc-angular-plugin 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # ⚡️ Angular SWC Plugin 🦀
2
+
3
+ ## What is this?
4
+
5
+ [SWC (Speedy Web Compiler)](https://swc.rs) is a lightning-fast JavaScript/TypeScript compiler, but it doesn't support
6
+ Angular even when using JIT _(Just-In-Time)_ compilation because Angular requires some additional transformations:
7
+
8
+ - `Component.templateUrl` => `Component.template`
9
+ - `Component.styleUrls` & `Component.styleUrl` => `Component.styles`
10
+ - Additional metadata for `input()`, `output()`, `viewChild()`, etc...
11
+
12
+ That is when this plugin comes in. It is a SWC plugin that adds support for Angular.
13
+
14
+ _Note that this plugin is not a replacement for the Angular compiler, and it won't work without the JIT compiler.
15
+ This means that while it is suitable for testing, it shouldn't be used to build production applications._
16
+
17
+ ## Try it now with your Jest tests
18
+
19
+ Cf. [`@jscutlery/swc-angular`](../swc-angular/README.md)
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@jscutlery/swc-angular-plugin",
3
+ "version": "0.12.0",
4
+ "repository": {
5
+ "url": "https://github.com/jscutlery/devkit"
6
+ },
7
+ "keywords": [
8
+ "SWC",
9
+ "Angular",
10
+ "Plugin",
11
+ "Testing"
12
+ ],
13
+ "main": "wasm32-wasi/release/swc_angular_plugin.wasm",
14
+ "files": [],
15
+ "preferUnplugged": true
16
+ }