|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
948 bytes
|
| Line | |
|---|
| 1 | ## istanbul-lib-instrument
|
|---|
| 2 |
|
|---|
| 3 | [](https://travis-ci.org/istanbuljs/istanbul-lib-instrument)
|
|---|
| 4 |
|
|---|
| 5 | Istanbul instrumenter library.
|
|---|
| 6 |
|
|---|
| 7 | Version 1.1.x now implements instrumentation using `Babel`. The implementation is inspired
|
|---|
| 8 | by prior art by @dtinth as demonstrated in the `__coverage__` babel plugin.
|
|---|
| 9 |
|
|---|
| 10 | It provides 2 "modes" of instrumentation.
|
|---|
| 11 |
|
|---|
| 12 | - The old API that is mostly unchanged (except for incompatibilities noted) and
|
|---|
| 13 | performs the instrumentation using babel as a library.
|
|---|
| 14 |
|
|---|
| 15 | - A `programVisitor` function for the Babel AST that can be used by a Babel plugin
|
|---|
| 16 | to emit instrumentation for ES6 code directly without any source map
|
|---|
| 17 | processing. This is the preferred path for babel users. The Babel plugin is
|
|---|
| 18 | called `babel-plugin-istanbul`.
|
|---|
| 19 |
|
|---|
| 20 | Incompatibilities and changes to instrumentation behavior can be found in
|
|---|
| 21 | [v0-changes.md](v0-changes.md).
|
|---|
| 22 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.