We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ced63 commit 872e9dfCopy full SHA for 872e9df
build/lib/swc/index.ts
@@ -9,6 +9,14 @@ import { join } from 'path';
9
import * as util from 'util';
10
import * as gulp from 'gulp';
11
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
+ */
20
export function createSwcClientStream(): Readable & { exec(print?: boolean): Promise<boolean> } {
21
22
const execAsync = util.promisify(exec);
0 commit comments