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");
1010const path_1 = require("path");
1111const util = require("util");
1212const 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+ */
1321function createSwcClientStream() {
1422 const execAsync = util.promisify(child_process_1.exec);
1523 const cwd = (0, path_1.join)(__dirname, '../../../');
You can’t perform that action at this time.
0 commit comments