File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ const stream_1 = require("stream");
10
10
const path_1 = require ( "path" ) ;
11
11
const util = require ( "util" ) ;
12
12
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
+ */
13
21
function createSwcClientStream ( ) {
14
22
const execAsync = util . promisify ( child_process_1 . exec ) ;
15
23
const cwd = ( 0 , path_1 . join ) ( __dirname , '../../../' ) ;
You can’t perform that action at this time.
0 commit comments