Skip to content

Commit 872e9df

Browse files
committed
comments, todos
1 parent 78ced63 commit 872e9df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/lib/swc/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ import { join } from 'path';
99
import * as util from 'util';
1010
import * as gulp from 'gulp';
1111

12+
/**
13+
* SWC transpile stream. Can be used as stream but `exec` is the prefered way because under the
14+
* hood this simply shells out to swc-cli. There is room for improvement but this already works.
15+
* Ideas
16+
* * use API, not swc-cli
17+
* * invoke binaries directly, don't go through swc-cli
18+
* * understand how to configure both setups in one (https://github.com/swc-project/swc/issues/4989)
19+
*/
1220
export function createSwcClientStream(): Readable & { exec(print?: boolean): Promise<boolean> } {
1321

1422
const execAsync = util.promisify(exec);

0 commit comments

Comments
 (0)