- This package handles coverage for babel generated code by reconciling babel's output and its source map.
- babel-istanbul is drop-in replacement for istanbul, as it is a copy of istanbul with babel compilation inserted into the instrumentation layer.
- There are also a few special flags for helping with babel compilation.
$ npm install babel-istanbul
- babel-istanbul is run exactly like istanbul. For specifics on running istanbul, see istanbul's README.
- There are a few special flags added to make working with babel easier:
Name | Description |
---|---|
include-babel-polyfill |
includes the babel-polyfill, defaults to false. |
use-babel-runtime |
uses the optional runtime option for babel, defaults to false. |
babel-stage |
sets the babel stage, defaults to 2 (draft). |