Skip to content

Commit

Permalink
add doc for Failed to load Sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Aug 19, 2024
1 parent 8c502eb commit 4debce1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Check [monocart coverage reports](https://github.com/cenfun/monocart-coverage-re

## Common issues
- Resolve full path of the file with option `sourcePath` (issue [#5](https://github.com/cenfun/jest-monocart-coverage/issues/5))

```js
const path = require("path")

Expand All @@ -65,3 +66,15 @@ const path = require("path")

}
```

- Failed to load Sourcemap

Using `sourceMap` instead of `inlineSourceMap` in `tsconfig.json`
```json
{
"compilerOptions": {
"sourceMap": true,
"inlineSourceMap": false
}
}
```

0 comments on commit 4debce1

Please sign in to comment.