npm install @theintern/istanbul-loader --save-dev
Install the loader in a project and add an entry for it to the project's webpack.config:
module:rules:test: /src\/.*\.ts$/use: '@theintern/istanbul-loader'...
Note that the istanbul-loader should be run after transpilers such as
TypeScript. This means that it should come before transpilers in a loader
list, or use
The rule test should only match source files, not all
.js files, so
as not to instrument tests or support files.
Options can be passed using the standard webpack
Currently the only option used by the loader is 'config', which should point to
Intern config file.
The loader will use values for
from the Intern config, if present.