Skip to content

Commit 2f390ce

Browse files
committed
add missing JS file
1 parent 95205a3 commit 2f390ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/lib/swc/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ const stream_1 = require("stream");
1010
const path_1 = require("path");
1111
const util = require("util");
1212
const gulp = require("gulp");
13+
/**
14+
* SWC transpile stream. Can be used as stream but `exec` is the prefered way because under the
15+
* hood this simply shells out to swc-cli. There is room for improvement but this already works.
16+
* Ideas
17+
* * use API, not swc-cli
18+
* * invoke binaries directly, don't go through swc-cli
19+
* * understand how to configure both setups in one (https://github.com/swc-project/swc/issues/4989)
20+
*/
1321
function createSwcClientStream() {
1422
const execAsync = util.promisify(child_process_1.exec);
1523
const cwd = (0, path_1.join)(__dirname, '../../../');

0 commit comments

Comments
 (0)