Skip to content

Commit

Permalink
Merge pull request #2617 from saucelabs/rick/source-maps-node-modules
Browse files Browse the repository at this point in the history
Add instruction for processing specific node_modules
  • Loading branch information
Paloma Oliveira authored Feb 2, 2024
2 parents 873f4f7 + 3aba6c5 commit 1033da1
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 1033da1

Please sign in to comment.