{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/93","labels_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/93/comments","events_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/93/events","html_url":"https://github.com/TypeStrong/ts-loader/issues/93","id":113857624,"number":93,"title":"Karma, ts-loader and sourcemaps","user":{"login":"johnnyreilly","id":1010525,"avatar_url":"https://avatars.githubusercontent.com/u/1010525?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyreilly","html_url":"https://github.com/johnnyreilly","followers_url":"https://api.github.com/users/johnnyreilly/followers","following_url":"https://api.github.com/users/johnnyreilly/following{/other_user}","gists_url":"https://api.github.com/users/johnnyreilly/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyreilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyreilly/subscriptions","organizations_url":"https://api.github.com/users/johnnyreilly/orgs","repos_url":"https://api.github.com/users/johnnyreilly/repos","events_url":"https://api.github.com/users/johnnyreilly/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyreilly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T16:10:06Z","updated_at":"2015-10-29T03:48:31Z","closed_at":null,"body":"Heya,\r\n\r\nI've just noticed that ts-loader doesn't seem to support sourcemaps when used with Karma.  You can see this for yourself by following these steps:\r\n\r\n1 - Clone this repo: https://github.com/johnnyreilly/globalize-so-what-cha-want\r\n\r\n2 - Enter these commands: \r\n\r\n```\r\nnpm install\r\nnpm run watch-demo\r\n```\r\n\r\n3 - Goto [http://localhost:9876/](http://localhost:9876/) in your browser (I'm using Chrome), click the \"DEBUG\" button on the right.  In the new tab hit F12 and open up the dev tools.  Marvel at the original webpack code rather than the original source:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1010525/10794629/a9c288fa-7d8d-11e5-9764-46bec5c31159.png)\r\n\r\nFeel sad.\r\n\r\nI don't think this has anything to do with https://github.com/TypeStrong/ts-loader/issues/59 - that's the only issue I found related to sourcemaps.\r\n\r\nDoes anyone have any idea why this might be happening?"},"comment":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/comments/152068290","html_url":"https://github.com/TypeStrong/ts-loader/issues/93#issuecomment-152068290","issue_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/93","id":152068290,"user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T03:48:31Z","updated_at":"2015-10-29T03:48:31Z","body":"OK! I looked at this for entirely too long this evening (but I didn't want it to beat me! :grin:)\r\n\r\nI was able to confirm that the output of webpack did not include inlined source map information. I have not yet been able to figure out *why*. I don't believe it's the fault of any of the loaders. Source map information is being made available to webpack. In fact, if you use `eval-source-map` instead then it works in Chrome (although I noticed that stack traces were still messed up for errors). So I'm not sure."}}