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
  • Loading branch information
thenglong authored Aug 21, 2023
1 parent a668c66 commit 078cf9a
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

1 comment on commit 078cf9a

@vercel
Copy link

@vercel vercel bot commented on 078cf9a Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.