fix(js): fix swc opens swc.js instead of compiling on windows (#18723)
This commit is contained in:
parent
a668c665a7
commit
078cf9a1ca
@ -11,7 +11,7 @@ function getSwcCmd(
|
||||
watch = false
|
||||
) {
|
||||
const swcCLI = require.resolve('@swc/cli/bin/swc.js');
|
||||
let swcCmd = `${swcCLI} ${
|
||||
let swcCmd = `node ${swcCLI} ${
|
||||
// TODO(jack): clean this up when we remove inline module support
|
||||
// Handle root project
|
||||
srcPath === '.' ? 'src' : srcPath
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user