{"action":"created","issue":{"url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/7","labels_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/7/comments","events_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/7/events","html_url":"https://github.com/deepsweet/istanbul-instrumenter-loader/issues/7","id":69604682,"number":7,"title":"No source map support","user":{"login":"claydiffrient","id":606262,"avatar_url":"https://avatars.githubusercontent.com/u/606262?v=3","gravatar_id":"","url":"https://api.github.com/users/claydiffrient","html_url":"https://github.com/claydiffrient","followers_url":"https://api.github.com/users/claydiffrient/followers","following_url":"https://api.github.com/users/claydiffrient/following{/other_user}","gists_url":"https://api.github.com/users/claydiffrient/gists{/gist_id}","starred_url":"https://api.github.com/users/claydiffrient/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydiffrient/subscriptions","organizations_url":"https://api.github.com/users/claydiffrient/orgs","repos_url":"https://api.github.com/users/claydiffrient/repos","events_url":"https://api.github.com/users/claydiffrient/events{/privacy}","received_events_url":"https://api.github.com/users/claydiffrient/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T14:50:25Z","updated_at":"2015-04-20T15:04:04Z","closed_at":null,"body":"When using this as a post loader in my webpack config:\r\n```js\r\nwebpackConfig.module.postLoaders = [\r\n  {\r\n    test: /\\.jsx$/,\r\n    exclude: /(test|node_modules|bower_components)\\//,\r\n    loader: 'istanbul-instrumenter'\r\n  }\r\n];\r\n```\r\nIt ends up destroying source maps: `devtool: 'source-map',`\r\n\r\nFor now my work around is to do \r\n```js\r\nlet istanbulInstrumenter =  {\r\n    test: /\\.jsx$/,\r\n    exclude: /(test|node_modules|bower_components)\\//,\r\n    loader: 'istanbul-instrumenter'\r\n  };\r\nwebpackConfig.module.postLoaders = IS_CI_ENV ? [istanbulInstrumenter] : []\r\n```\r\nWhich works for when I want it to do coverage from my CI environment, but makes it so it's slightly more difficult to get coverage locally."},"comment":{"url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/comments/94476913","html_url":"https://github.com/deepsweet/istanbul-instrumenter-loader/issues/7#issuecomment-94476913","issue_url":"https://api.github.com/repos/deepsweet/istanbul-instrumenter-loader/issues/7","id":94476913,"user":{"login":"deepsweet","id":266822,"avatar_url":"https://avatars.githubusercontent.com/u/266822?v=3","gravatar_id":"","url":"https://api.github.com/users/deepsweet","html_url":"https://github.com/deepsweet","followers_url":"https://api.github.com/users/deepsweet/followers","following_url":"https://api.github.com/users/deepsweet/following{/other_user}","gists_url":"https://api.github.com/users/deepsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/deepsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepsweet/subscriptions","organizations_url":"https://api.github.com/users/deepsweet/orgs","repos_url":"https://api.github.com/users/deepsweet/repos","events_url":"https://api.github.com/users/deepsweet/events{/privacy}","received_events_url":"https://api.github.com/users/deepsweet/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T15:04:04Z","updated_at":"2015-04-20T15:04:04Z","body":"afaik there is no source maps support https://github.com/gotwarlost/istanbul/issues/212 + https://github.com/karma-runner/karma-coverage/issues/109, so there is nothing to return from the loader.\r\n\r\nbtw, are you sure that you really need source maps in case of code coverage?"}}