Skip to content

Commit

Permalink
fix(js): fix swc opens swc.js instead of compiling on windows (#18723)
Browse files Browse the repository at this point in the history
(cherry picked from commit 078cf9a)
  • Loading branch information
thenglong authored and FrozenPandaz committed Aug 21, 2023
1 parent 8010270 commit 2835cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/utils/swc/compile-swc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2835cb3

Please sign in to comment.