Skip to content

Commit

Permalink
Add docs for source map output
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Oct 10, 2016
1 parent b88af91 commit 4e8c205
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ and a `text-lcov` coverage report.
nyc --reporter=lcov --reporter=text-lcov npm test
```

## Stack Traces

When `source-map` handling enabled, then the instrumented source files will
include inline source maps for the instrumenter transform. When combined with
a supporting version of [source-map-support](https://github.com/evanw/node-source-map-support/pull/118)
(currently published under `@kpdecker/source-map-support` while PR pending),
stack traces for instrumented code should reflect the original lines.

This is enabled by default, but may be disabled by `nyc --source-map=false`.

## Support for custom require hooks (babel, webpack, etc.)

nyc supports custom require hooks like
Expand Down

0 comments on commit 4e8c205

Please sign in to comment.