amaro 0.1.9 → 0.2.1
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 +15 -0
- package/dist/index.js +49 -72
- package/dist/package.json +1 -1
- package/dist/register-strip.mjs +3 -0
- package/dist/register-transform.mjs +12 -0
- package/dist/strip-loader.js +24 -0
- package/dist/transform-loader.js +30 -0
- package/package.json +11 -5
- package/dist/register.mjs +0 -3
package/README.md
CHANGED
|
@@ -34,6 +34,21 @@ This allows the installed Amaro to override the Amaro version used by Node.js.
|
|
|
34
34
|
node --experimental-strip-types --import="amaro/register" script.ts
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
Or with the alias:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
node --experimental-strip-types --import="amaro/strip" script.ts
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Enabling TypeScript feature transformation:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
node --experimental-transform-types --import="amaro/transform" script.ts
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
> Note that the "amaro/transform" loader should be used with `--experimental-transform-types` flag, or
|
|
50
|
+
> at least with `--enable-source-maps` flag, to preserve the original source maps.
|
|
51
|
+
|
|
37
52
|
### How to update SWC
|
|
38
53
|
|
|
39
54
|
To update the SWC version, run:
|