Skip to content

Commit

Permalink
Add instruction for processing specific node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-bt committed Jan 31, 2024
1 parent d02b741 commit 09f5219
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/error-reporting/platform-integrations/source-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,21 @@ Create a `.backtracejsrc` configuration file in the root of your project with th
Alternatively, if you do not wish to upload source files directly to Backtrace, you can integrate your source repository. To do so, omit `add-sources` and `include-sources` and follow the steps in the [Source Code](../../project-setup/source-code/) document.
:::

:::info Processing node_modules
node_modules are not processed by default. You may include specific modules by including a reference to each in `.backtracejsrc` `path`.
```json
{
// highlight-next-line
"path": [
"<build output>",
"./node_modules/bser",
"./node_modules/chalk"
],
...
}
```
:::

See `backtrace-js --help` or go to [`@backtrace/javascript-cli`](https://github.com/backtrace-labs/backtrace-javascript/blob/dev/tools/cli) for additional command line and configuration options.

:::note Troubleshooting
Expand Down

0 comments on commit 09f5219

Please sign in to comment.