Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
docs(README): add example for babel usage (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarjei authored and michael-ciniawsky committed Jun 27, 2017
1 parent 18659c7 commit 1897db1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -101,6 +101,17 @@ config.set({
});
```

#### With babel
You must run the instrumentation as a post step:
```js
{
test: /\.js$|\.jsx$/,
enforce: 'post',
use: { loader: 'istanbul-instrumenter-loader', options: { esModules: true } },
exclude: /node_modules|\.spec\.js$/,
}
```

#### Options
The loader supports all options supported by [istanbul-lib-instrument](https://github.com/istanbuljs/istanbuljs/blob/master/packages/istanbul-lib-instrument/api.md#instrumenter).

Expand Down

0 comments on commit 1897db1

Please sign in to comment.