{"action":"created","issue":{"url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/31","labels_url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/31/comments","events_url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/31/events","html_url":"https://github.com/jsdf/coffee-react-transform/issues/31","id":50202433,"number":31,"title":"Source Maps","user":{"login":"nickdima","id":614468,"avatar_url":"https://avatars.githubusercontent.com/u/614468?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdima","html_url":"https://github.com/nickdima","followers_url":"https://api.github.com/users/nickdima/followers","following_url":"https://api.github.com/users/nickdima/following{/other_user}","gists_url":"https://api.github.com/users/nickdima/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdima/subscriptions","organizations_url":"https://api.github.com/users/nickdima/orgs","repos_url":"https://api.github.com/users/nickdima/repos","events_url":"https://api.github.com/users/nickdima/events{/privacy}","received_events_url":"https://api.github.com/users/nickdima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-26T16:55:43Z","updated_at":"2015-04-19T09:42:46Z","closed_at":null,"body":"Is `coffee-react-transform` creating source maps?"},"comment":{"url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/comments/94256705","html_url":"https://github.com/jsdf/coffee-react-transform/issues/31#issuecomment-94256705","issue_url":"https://api.github.com/repos/jsdf/coffee-react-transform/issues/31","id":94256705,"user":{"login":"benjie","id":129910,"avatar_url":"https://avatars.githubusercontent.com/u/129910?v=3","gravatar_id":"","url":"https://api.github.com/users/benjie","html_url":"https://github.com/benjie","followers_url":"https://api.github.com/users/benjie/followers","following_url":"https://api.github.com/users/benjie/following{/other_user}","gists_url":"https://api.github.com/users/benjie/gists{/gist_id}","starred_url":"https://api.github.com/users/benjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjie/subscriptions","organizations_url":"https://api.github.com/users/benjie/orgs","repos_url":"https://api.github.com/users/benjie/repos","events_url":"https://api.github.com/users/benjie/events{/privacy}","received_events_url":"https://api.github.com/users/benjie/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T09:42:46Z","updated_at":"2015-04-19T09:42:46Z","body":"If you prefer you can use Mozilla's `source-map` library's `applySourceMap` method like [apply-source-map does](https://github.com/webdeps/apply-source-map/blob/master/index.js):\r\n\r\n```\r\nvar Sauce = require('source-map')\r\nvar Consumer = Sauce.SourceMapConsumer\r\nvar Generator = Sauce.SourceMapGenerator\r\n\r\nmodule.exports = function (map, from) {\r\n  var generator = Generator.fromSourceMap(new Consumer(map))\r\n  generator.applySourceMap(new Consumer(from))\r\n  return generator.toString()\r\n}\r\n```\r\n\r\nI've used this in my latest project, [parallel-transpile](https://github.com/timecounts/parallel-transpile), which uses Webpack loaders to transpile content via multiple steps from one folder to another using all your processors (multicore). I've not yet integrated CJSX source maps, but I'd certainly like to!"}}