Skip to content

Commit 2835cb3

Browse files
thenglongFrozenPandaz
authored andcommittedAug 21, 2023
fix(js): fix swc opens swc.js instead of compiling on windows (#18723)
(cherry picked from commit 078cf9a)
1 parent 8010270 commit 2835cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/js/src/utils/swc/compile-swc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function getSwcCmd(
1111
watch = false
1212
) {
1313
const swcCLI = require.resolve('@swc/cli/bin/swc.js');
14-
let swcCmd = `${swcCLI} ${
14+
let swcCmd = `node ${swcCLI} ${
1515
// TODO(jack): clean this up when we remove inline module support
1616
// Handle root project
1717
srcPath === '.' ? 'src' : srcPath

0 commit comments

Comments
 (0)
Please sign in to comment.