Skip to content

Commit

Permalink
Mention --enable-source-maps in README.md for esm projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinkai committed Jan 28, 2024
1 parent 0e8eca2 commit 068e42a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ node --import @swc-node/register/esm-register script.ts # for esm project with n
node --loader @swc-node/register/esm script.ts # for esm project with node<=20.5, deprecated
```

Pass `--enable-source-maps` to node for esm projects

Set environment variable SWCRC=true when you would like to load .swcrc file

```bash
Expand Down

0 comments on commit 068e42a

Please sign in to comment.