Skip to content

Commit fe58f2c

Browse files
committed
Rebuild readme
1 parent ccf8c8e commit fe58f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ npm install -g ts-node
124124
npm install -D tslib @types/node
125125
```
126126

127-
**Tip:** Installing modules locally allows you to control and share the versions through `package.json`. TS Node will always resolve the compiler from `cwd` before checking relative to its own installation.
127+
**Tip:** Installing modules locally allows you to control and share the versions through `package.json`. ts-node will always resolve the compiler from `cwd` before checking relative to its own installation.
128128

129129
# Usage
130130

@@ -648,10 +648,10 @@ We have bundled an experimental `swc` integration.
648648
[`swc`](https://swc.rs) is a TypeScript-compatible transpiler implemented in Rust. This makes it an order of magnitude faster
649649
than `transpileModule`.
650650
651-
To use it, first install `@swc/core` or `@swc/wasm`. If using `importHelpers`, also install `@swc/helpers`.
651+
To use it, first install `@swc/core` or `@swc/wasm`. If using `importHelpers`, also install `@swc/helpers`. If `target` is less than "es2015" and using either `async`/`await` or generator functions, also install `regenerator-runtime`.
652652
653653
```shell
654-
npm i -D @swc/core @swc/helpers
654+
npm i -D @swc/core @swc/helpers regenerator-runtime
655655
```
656656
657657
Then add the following to your `tsconfig.json`.

0 commit comments

Comments
 (0)