{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1027","labels_url":"https://api.github.com/repos/babel/babel/issues/1027/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1027/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1027/events","html_url":"https://github.com/babel/babel/issues/1027","id":61805216,"number":1027,"title":"Add way to automatically use generated sourcemaps in node.js","user":{"login":"cowboy","id":54051,"avatar_url":"https://avatars.githubusercontent.com/u/54051?v=3","gravatar_id":"","url":"https://api.github.com/users/cowboy","html_url":"https://github.com/cowboy","followers_url":"https://api.github.com/users/cowboy/followers","following_url":"https://api.github.com/users/cowboy/following{/other_user}","gists_url":"https://api.github.com/users/cowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/cowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowboy/subscriptions","organizations_url":"https://api.github.com/users/cowboy/orgs","repos_url":"https://api.github.com/users/cowboy/repos","events_url":"https://api.github.com/users/cowboy/events{/privacy}","received_events_url":"https://api.github.com/users/cowboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-15T12:36:47Z","updated_at":"2015-03-15T12:36:47Z","closed_at":null,"body":"I'm writing some node.js code in ES6/7 and compiling it (along with sourcemaps) with babel. Then I'm running the compiled code with nodejs. Unfortunately, there doesn't seem to be built-in support in node.js for sourcemaps, so all the line numbers are of the generated files, not my source files.\r\n\r\nI've figure out that I can work around this by installing the [source-map-support](https://github.com/evanw/node-source-map-support) npm module and adding `require('source-map-support').install();` to the top of my source files, but this seems a bit unwieldy to me.\r\n\r\nIs there any way to get babel to automatically add the `require('source-map-support').install();` line to the top of the generated files? This doesn't seem like the kind of code I should be adding to my source files manually.\r\n\r\nAlternatively, is there a better way to actually use the sourcemaps babel generates to help me debug my node.js code?\r\n\r\nThanks!"}}