Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.03 KB

File metadata and controls

47 lines (32 loc) · 1.03 KB

babel-plugin-transform-esnext-coverage

NPM version Build Status

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']
});

License

MIT License