@@ -37,7 +37,7 @@ See the output of the tool for command-line options and next steps.
37
37
### Running a program from npm
38
38
39
39
The ` nodejs_binary ` rule lets you run a program with Node.js.
40
- See [ Built-ins]
40
+ See [ Built-ins] ( Built-ins.html )
41
41
42
42
If you have installed the [ rollup] package, you could write this rule:
43
43
@@ -126,7 +126,7 @@ See https://nodejs.org/en/docs/guides/debugging-getting-started/ for more detail
126
126
127
127
### Debugging with VS Code
128
128
129
- With the above configuration you can use VS Code as your debugger.
129
+ With the above configuration you can use VS Code as your debugger.
130
130
You will first need to configure your ` .vscode/launch.json ` :
131
131
132
132
```
@@ -143,13 +143,13 @@ You will first need to configure your `.vscode/launch.json`:
143
143
"../../../../../*": "${workspaceRoot}/*",
144
144
// do as many levels here as needed for your project
145
145
}
146
- ```
147
- We use ` sourceMapPathOverrides ` here to rewrite the source maps produced by ` ts_library ` so that breakpoints line up with the source maps.
146
+ ```
147
+ We use ` sourceMapPathOverrides ` here to rewrite the source maps produced by ` ts_library ` so that breakpoints line up with the source maps.
148
148
Once configured start your process with
149
149
```
150
150
bazel run --config=debug //test:test1
151
151
```
152
- Then hit ` F5 ` which will start the VS Code debugger with the ` Attach nodejs_binary ` configuration.
152
+ Then hit ` F5 ` which will start the VS Code debugger with the ` Attach nodejs_binary ` configuration.
153
153
VS Code will immediatenly hit a breakpoint to which you can continue and debug using all the normal debug features provided.
154
154
155
155
@@ -168,7 +168,7 @@ To stamp a build, you must pass the `--stamp` argument to Bazel.
168
168
Also pass the ` workspace_status_command ` argument to ` bazel build ` .
169
169
We prefer to do these with an entry in ` .bazelrc ` :
170
170
171
- ``` sh
171
+ ``` sh
172
172
# This tells Bazel how to interact with the version control system
173
173
# Enable this with --config=release
174
174
build:release --stamp --workspace_status_command=./tools/bazel_stamp_vars.sh
0 commit comments