{"library":"rollup-plugin-istanbul","title":"rollup-plugin-istanbul","description":"A Rollup plugin that provides seamless integration with Istanbul for code coverage. Version 5.0.0 supports Rollup v4 and uses istanbul-lib-instrument v6.0.1. Dropped Node.js 14 support in v5.0.0. Key differentiator: instruments source files before bundling to avoid instrumenting test code, with source map support. Released occasionally, maintained actively.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-istanbul"],"cli":null},"imports":["import istanbul from 'rollup-plugin-istanbul'","import type { IstanbulPluginOptions } from 'rollup-plugin-istanbul'","const istanbul = require('rollup-plugin-istanbul')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport istanbul from 'rollup-plugin-istanbul';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    istanbul({\n      exclude: ['test/**/*.js', 'node_modules/**'],\n      instrumenterConfig: {\n        esModules: true,\n        compact: true,\n        produceSourceMap: true,\n        autoWrap: true,\n        preserveComments: true\n      }\n    })\n  ]\n});\n\nawait bundle.write({\n  file: 'dist/bundle.js',\n  format: 'iife'\n});\n","lang":"javascript","description":"Shows how to use rollup-plugin-istanbul with Rollup to instrument source files for code coverage, excluding test files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}