You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-4
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Perform async work synchronously in Node.js using `worker_threads` with first-cl
25
25
-[`ts-node`](#ts-node)
26
26
-[`esbuild-register`](#esbuild-register)
27
27
-[`esbuild-runner`](#esbuild-runner)
28
+
-[`swc`](#swc)
28
29
-[`tsx`](#tsx)
29
30
-[Benchmark](#benchmark)
30
31
-[Sponsors](#sponsors)
@@ -83,7 +84,7 @@ You must make sure, the `result` is serializable by [`Structured Clone Algorithm
83
84
1.`SYNCKIT_BUFFER_SIZE`: `bufferSize` to create `SharedArrayBuffer` for `worker_threads` (default as `1024`)
84
85
2.`SYNCKIT_TIMEOUT`: `timeout` for performing the async job (no default)
85
86
3.`SYNCKIT_EXEC_ARGV`: List of node CLI options passed to the worker, split with comma `,`. (default as `[]`), see also [`node` docs](https://nodejs.org/api/worker_threads.html)
86
-
4.`SYNCKIT_TS_RUNNER`: Which TypeScript runner to be used, it could be very useful for development, could be `'ts-node' | 'esbuild-register' | 'esbuild-runner' | 'tsx'`, `'ts-node'` is used by default, make sure you have installed them already
87
+
4.`SYNCKIT_TS_RUNNER`: Which TypeScript runner to be used, it could be very useful for development, could be `'ts-node' | 'esbuild-register' | 'esbuild-runner' | 'swc' | 'tsx'`, `'ts-node'` is used by default, make sure you have installed them already
87
88
88
89
### TypeScript
89
90
@@ -97,15 +98,19 @@ If you want to integrate with [tsconfig-paths](https://www.npmjs.com/package/tsc
97
98
98
99
#### `esbuild-register`
99
100
100
-
Please view <https://github.com/egoist/esbuild-register> for its document
101
+
Please view [`esbuild-register`][] for its document
101
102
102
103
#### `esbuild-runner`
103
104
104
-
Please view <https://github.com/folke/esbuild-runner> for its document
105
+
Please view [`esbuild-runner`][] for its document
106
+
107
+
#### `swc`
108
+
109
+
Please view [`@swc-node/register`][] for its document
105
110
106
111
#### `tsx`
107
112
108
-
Please view <https://github.com/esbuild-kit/tsx> for its document
113
+
Please view [`tsx`][] for its document
109
114
110
115
## Benchmark
111
116
@@ -137,6 +142,10 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
0 commit comments