Commit 9c985ee
committed
Set projectRoot to null explicitly
This is important because if we don't send it explicitly and just
leave it out, it defaults to the current working directory.
Generally speaking, this will result in all stack frames from the
CLI being identified as outside of the project, preventing correct
error grouping in Observe.
By setting an explicit null project root, we prevent the SDK-side
assignment of in-project state, and we fall back to Observe's
much smarter algorithm for identifying in-project lines.
For context, see https://github.com/bugsnag/bugsnag-js/blob/286caed5daae9349be8fb22ab0051204bfc1a813/packages/plugin-node-in-project/in-project.js1 parent 8df2b2d commit 9c985ee
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 | | |
287 | 292 | | |
0 commit comments