Skip to content

Commit

Permalink
Release 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Oct 16, 2024
1 parent 386bbc5 commit fa67e32
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

1.12.0 / 2024-10-16
===================

* feat: support inspect args (#31)

1.11.3 / 2024-10-09
===================

Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,27 @@ $ npx mwtsc --watch --inspect-brk --run ./bootstrap.js
* 2、support copy non-ts file to dist directory when build source code
* 3、support ts alias path by tsc-alias

## About `--inspect` and `--inspect-brk`

If you're using VSCode or JetBrains IntelliJ IDEA (or other IDEs), you won't need to manually start the child process with debugging flags like --inspect or --inspect-brk. The IDE will automatically attach the debugger to the child process.

However, if you wish to debug the child process within Chrome, you can utilize --inspect or --inspect-brk to initiate the child process with the debugger enabled.

```bash
$ npx mwtsc --watch --inspect --run ./bootstrap.js
$ npx mwtsc --watch --inspect-brk --run ./bootstrap.js
```

Unfortunately, Chrome DevTools cannot directly access local files with certain special protocols due to security policies. To overcome this, we set up a proxy server to serve the source files. You will need to configure the proxy server's location in your tsconfig.json to properly handle source maps.

```json
{
"compilerOptions": {
"sourceRoot": "http://localhost:7788/"
}
}
```

## API

You can use `mwtsc` API in your code to extend your own logic.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mwtsc",
"version": "1.11.3",
"version": "1.12.0",
"description": "tsc wrapper for midway development",
"main": "lib/index.js",
"bin": {
Expand Down

0 comments on commit fa67e32

Please sign in to comment.