Skip to content

Commit

Permalink
fix: node 20 tsx loader crash
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jan 18, 2024
1 parent cf9d6ad commit 7d7a3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const main = async () => {

const childProcess = spawn(
process.execPath,
["-r", cjsAutoLoaderPath, "--loader", esmLoaderPath, "--loader", esmAutoLoaderPath, ...argv],
["-r", cjsAutoLoaderPath, "--import", esmLoaderPath, `--loader`, `${esmAutoLoaderPath}`, ...argv],
{
stdio: ["inherit", "inherit", "inherit", "ipc"],
env: {
Expand Down

0 comments on commit 7d7a3f3

Please sign in to comment.