babel-plugin-transform-esnext-coverage
v0.0.9
Published
Instrumenter for esnext-coverage
Downloads
13
Maintainers
Readme
babel-plugin-transform-esnext-coverage
Instrumenter for esnext-coverage.
Installation
npm install babel-plugin-transform-esnext-coverage --save-dev
Usage
.babelrc
It is recommended that you run the instrumenter conditionally, using env
variables, e.g. NODE_ENV=test
:
{
"env": {
"test": {
"plugins": ["transform-esnext-coverage"]
}
}
}
CLI
$ babel --plugins transform-esnext-coverage script.js
Node API
require('babel-core').transform('code', {
plugins: ['transform-esnext-coverage']
});