{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/karma-webpack/issues/13","labels_url":"https://api.github.com/repos/webpack/karma-webpack/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/webpack/karma-webpack/issues/13/comments","events_url":"https://api.github.com/repos/webpack/karma-webpack/issues/13/events","html_url":"https://github.com/webpack/karma-webpack/issues/13","id":38010540,"number":13,"title":"Source maps with karma's coffee-loader","user":{"login":"ggoodale","id":7767,"avatar_url":"https://avatars.githubusercontent.com/u/7767?v=3","gravatar_id":"","url":"https://api.github.com/users/ggoodale","html_url":"https://github.com/ggoodale","followers_url":"https://api.github.com/users/ggoodale/followers","following_url":"https://api.github.com/users/ggoodale/following{/other_user}","gists_url":"https://api.github.com/users/ggoodale/gists{/gist_id}","starred_url":"https://api.github.com/users/ggoodale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggoodale/subscriptions","organizations_url":"https://api.github.com/users/ggoodale/orgs","repos_url":"https://api.github.com/users/ggoodale/repos","events_url":"https://api.github.com/users/ggoodale/events{/privacy}","received_events_url":"https://api.github.com/users/ggoodale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-07-16T18:27:49Z","updated_at":"2015-06-18T18:33:55Z","closed_at":null,"body":"I'm trying to use karma(/mocha/chai/phantomjs+chrome) and webpack's coffee-loader together, and my stack traces on test failures don't appear to be taking advantage of source maps.  I can see coffee-loader returning the generated source map info, and there's a sourceMapUrl appended to the output file, but my test output looks like:\r\n\r\n```\r\nFAILED TESTS:\r\n  Media\r\n    when rendered with no image\r\n      ✗ should be an img\r\n        PhantomJS 1.9.7 (Mac OS X)\r\n      AssertionError: expected 1 to equal 0\r\n          at /Users/ggoodale/Projects/snip/client-root/test/spec/react_components/Media_spec.coffee:11122\r\n          at assertEqual (/Users/ggoodale/Projects/snip/client-root/test/spec/react_components/Media_spec.coffee:18517)\r\n          at /Users/ggoodale/Projects/snip/client-root/test/spec/react_components/Media_spec.coffee:29137\r\n          at /Users/ggoodale/Projects/snip/client-root/test/spec/react_components/Media_spec.coffee:83\r\n          at callFn (/Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4338)\r\n          at /Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4331\r\n          at /Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4728\r\n          at /Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4819\r\n          at next (/Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4653)\r\n          at /Users/ggoodale/Projects/snip/client-root/node_modules/mocha/mocha.js:4663\r\n```  \r\n(note that the error claims to have occurred on line 11222 of Media.coffee, which is 43 lines long.)\r\n\r\nThe relevant part of my karma.conf.js:\r\n\r\n```javascript\r\n    webpack: {\r\n      cache: true,\r\n      debug: true,\r\n      devtool: '@inline-source-map',\r\n      module: {\r\n        preLoaders: [],\r\n        loaders: [{\r\n          test: /\\.coffee$/,\r\n          exclude: 'node_modules',\r\n          loader: 'coffee-loader'\r\n        }, {\r\n          test: /\\.css$/,\r\n          loader: 'style!css'\r\n        }, {\r\n          test: /\\.gif/,\r\n          loader: 'url-loader?limit=10000&mimetype=image/gif'\r\n        }, {\r\n          test: /\\.jpg/,\r\n          loader: 'url-loader?limit=10000&mimetype=image/jpg'\r\n        }, {\r\n          test: /\\.png/,\r\n          loader: 'url-loader?limit=10000&mimetype=image/png'\r\n        }]\r\n      },\r\n      resolve: {\r\n        extensions: [\"\", \".web.coffee\", \".web.js\", \".js.coffee\", \".coffee\", \".js\"],\r\n        modulesDirectories: [\"web_modules\", \"node_modules\", \"src/js/react_components\", \"test/spec\"]\r\n      }\r\n    },\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/karma-webpack/issues/comments/113252102","html_url":"https://github.com/webpack/karma-webpack/issues/13#issuecomment-113252102","issue_url":"https://api.github.com/repos/webpack/karma-webpack/issues/13","id":113252102,"user":{"login":"KeriWarr","id":5460144,"avatar_url":"https://avatars.githubusercontent.com/u/5460144?v=3","gravatar_id":"","url":"https://api.github.com/users/KeriWarr","html_url":"https://github.com/KeriWarr","followers_url":"https://api.github.com/users/KeriWarr/followers","following_url":"https://api.github.com/users/KeriWarr/following{/other_user}","gists_url":"https://api.github.com/users/KeriWarr/gists{/gist_id}","starred_url":"https://api.github.com/users/KeriWarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeriWarr/subscriptions","organizations_url":"https://api.github.com/users/KeriWarr/orgs","repos_url":"https://api.github.com/users/KeriWarr/repos","events_url":"https://api.github.com/users/KeriWarr/events{/privacy}","received_events_url":"https://api.github.com/users/KeriWarr/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T18:33:55Z","updated_at":"2015-06-18T18:33:55Z","body":"+2\r\n"}}