{"action":"opened","issue":{"url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/17","labels_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/17/comments","events_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/17/events","html_url":"https://github.com/deepsweet/istanbul-instrumenter-loader/issues/17","id":124124717,"number":17,"title":"Transpiled sources","user":{"login":"dmackerman","id":289938,"avatar_url":"https://avatars.githubusercontent.com/u/289938?v=3","gravatar_id":"","url":"https://api.github.com/users/dmackerman","html_url":"https://github.com/dmackerman","followers_url":"https://api.github.com/users/dmackerman/followers","following_url":"https://api.github.com/users/dmackerman/following{/other_user}","gists_url":"https://api.github.com/users/dmackerman/gists{/gist_id}","starred_url":"https://api.github.com/users/dmackerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmackerman/subscriptions","organizations_url":"https://api.github.com/users/dmackerman/orgs","repos_url":"https://api.github.com/users/dmackerman/repos","events_url":"https://api.github.com/users/dmackerman/events{/privacy}","received_events_url":"https://api.github.com/users/dmackerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T20:53:38Z","updated_at":"2015-12-28T20:53:38Z","closed_at":null,"body":"I got this working, but the coverage is showing my transpiled sources. I've spent hours trying to figure out which modules to use to get the ES6 code to be shown by Istanbul. \r\n\r\nDo I need something like `isparta-loader`? I tried plugging it in as a `preLoader`, but no dice. \r\n\r\nMy `karma.config`\r\n\r\n```js\r\nmodule.exports = function(config) {\r\n    config.set({\r\n\r\n        // use headless PhantomJS\r\n        browsers: ['Chrome'],\r\n\r\n        // use Jasmine with Sinon for mocking and stubs\r\n        frameworks: ['jasmine', 'sinon'],\r\n\r\n        // load our single entry point for our tests\r\n        files: [\r\n            'tests/tests.webpack.js'\r\n        ],\r\n\r\n        // preprocess with webpack and our sourcemap loader\r\n        preprocessors: {\r\n            'tests/tests.webpack.js': ['webpack', 'sourcemap']\r\n        },\r\n\r\n        reporters: [\r\n            // https://github.com/mlex/karma-spec-reporter\r\n            'spec',\r\n\r\n            // https://github.com/karma-runner/karma-coverage\r\n            'coverage'\r\n        ],\r\n\r\n\r\n        // configure webpack within Karma\r\n        webpack: {\r\n\r\n            // just do inline source maps instead of the default\r\n            devtool: 'inline-source-map',\r\n\r\n            module: {\r\n                loaders: [{\r\n                    test: /\\.js/,\r\n                    exclude: /node_modules/,\r\n                    loader: 'babel-loader'\r\n                }, {\r\n                    test: /\\.html$/,\r\n                    loader: 'html'\r\n                }],\r\n                // delays coverage til after tests are run, fixing transpiled source coverage error\r\n                postLoaders: [{\r\n                    test: /\\.js$/,\r\n                    exclude: /(tests|node_modules|\\.spec\\.js$)/,\r\n                    loader: 'istanbul-instrumenter'\r\n                }]\r\n            }\r\n        },\r\n\r\n        // configure the webpack server to not be so verbose\r\n        webpackServer: {\r\n            noInfo: true\r\n        },\r\n\r\n        // setup code coverage\r\n        coverageReporter: {\r\n            reporters: [{\r\n                type: 'text-summary',\r\n            }, {\r\n                type: 'html',\r\n                dir: 'coverage/'\r\n            }]\r\n        },\r\n\r\n\r\n    });\r\n};\r\n\r\n```\r\n\r\nMy `tests.webpack.js` is my single entry point.\r\n\r\n```js\r\nvar context = require.context('../src', true, /\\.js$/);\r\ncontext.keys().forEach(context);\r\n```"}}