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 Oct 31, 2023
1 parent c706f17 commit 65ea3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Run TypeScript with node, without compilation or typechecking:
```bash
npm i -D @swc-node/register
node -r @swc-node/register script.ts
node --loader @swc-node/register/esm script.ts # for esm project
node --loader @swc-node/register/esm script.ts # for esm project, you may also want --enable-source-maps
```

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

0 comments on commit 65ea3bd

Please sign in to comment.