{"library":"istanbul-instrumenter-loader","type":"library","category":null,"description":"Webpack loader that instruments JavaScript files with istanbul-lib-instrument for code coverage reporting. Latest stable version is 3.0.1 (March 2018). Designed for webpack 2–4, primarily used with Karma and karma-coverage-istanbul-reporter. Supports Babel integration but must run as a post-loader. The loader has been superseded by babel-plugin-istanbul and is no longer actively maintained, but still functional for webpack 3 projects. It validates options via schema-utils but has limited flexibility compared to newer approaches.","language":"javascript","status":"maintenance","version":"3.0.1","tags":["javascript","webpack","loader","istanbul","coverage"],"last_verified":"Wed May 27","install":[{"cmd":"npm install istanbul-instrumenter-loader","imports":["// webpack.config.js\n{\n  test: /\\.js$/,\n  use: { loader: 'istanbul-instrumenter-loader', options: { esModules: true } },\n  enforce: 'post',\n  exclude: /node_modules|\\.spec\\.js$/\n}","// valid options object\n{\n  esModules: true,\n  compact: true,\n  produceSourceMap: false\n}","// pattern for test index file\nconst tests = require.context('./src/components/', true, /\\.js$/);\ntests.keys().forEach(tests);\nconst components = require.context('../src/components/', true, /\\.js$/);\ncomponents.keys().forEach(components);"]},{"cmd":"yarn add istanbul-instrumenter-loader","imports":[]},{"cmd":"pnpm add istanbul-instrumenter-loader","imports":[]}],"homepage":null,"github":"https://github.com/webpack-contrib/istanbul-instrumenter-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/istanbul-instrumenter-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/istanbul-instrumenter-loader/compatibility"}}