Rollup plugin for Istanbul unit test coverage. Version 0.1.4 provides integration with Istanbul instrumenter for code coverage reporting in Rollup and Karma. It offers options for include/exclude patterns, coverage options, and sourcemap support. The plugin is no longer actively maintained; users are advised to migrate to @rollup/plugin-istanbul or official Rollup coverage plugins.
npm install rollup-plugin-coverageVerified import paths — ran on the pinned version, not inferred.
Configures Rollup with Istanbul coverage, excluding test files and setting ES module instrumentation.
Replace with @rollup/plugin-istanbul: npm install @rollup/plugin-istanbul and update import.
Place coverage plugin first in the plugins array.
Use Karma with karma-coverage for automatic browser coverage collection.
Add coverageOptions: { sourceMapWithCode: true }.Run npm install rollup-plugin-coverage --save-dev
Change import { coverage } to import coverage