{"action":"created","issue":{"url":"https://api.github.com/repos/google/traceur-compiler/issues/1748","labels_url":"https://api.github.com/repos/google/traceur-compiler/issues/1748/labels{/name}","comments_url":"https://api.github.com/repos/google/traceur-compiler/issues/1748/comments","events_url":"https://api.github.com/repos/google/traceur-compiler/issues/1748/events","html_url":"https://github.com/google/traceur-compiler/issues/1748","id":58113490,"number":1748,"title":"Disable `//# sourceURL=` output","user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-18T19:14:49Z","updated_at":"2015-02-20T17:23:42Z","closed_at":null,"body":"Please disable output of `//# sourceURL=` comments by default or at least provide an option to disable it. It serves no purpose in many cases and currently causes several problems in Chrome.\r\n\r\nExamples:\r\n\r\n1.\r\n```js\r\nbrowserify({\r\n  entries: whatever,\r\n  debug: true,\r\n})\r\n  .transform(es6ify)\r\n  .bundle()\r\n  .pipe(exorcist())\r\n```\r\nCurrently results in broken source mapping due to Chrome's misapplication of `sourceURL` comments. The comments serve no purpose in this case because the source files are identified by the `sources` array in the source map.\r\n\r\nSee http://code.google.com/p/chromium/issues/detail?id=457419\r\n\r\n2.\r\n```js\r\nbrowserify({\r\n  entries: whatever,\r\n  debug: false,\r\n})\r\n  .transform(es6ify)\r\n  .bundle()\r\n```\r\nEven without source mapping, presence of the `sourceURL` comments results in mangled line numbers in the debugger due to Chrome's misapplication of them. Again, they serve no purpose here (that I'm aware of).\r\n\r\nSee http://code.google.com/p/chromium/issues/detail?id=459682\r\n"},"comment":{"url":"https://api.github.com/repos/google/traceur-compiler/issues/comments/75279849","html_url":"https://github.com/google/traceur-compiler/issues/1748#issuecomment-75279849","issue_url":"https://api.github.com/repos/google/traceur-compiler/issues/1748","id":75279849,"user":{"login":"johnjbarton","id":205570,"avatar_url":"https://avatars.githubusercontent.com/u/205570?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjbarton","html_url":"https://github.com/johnjbarton","followers_url":"https://api.github.com/users/johnjbarton/followers","following_url":"https://api.github.com/users/johnjbarton/following{/other_user}","gists_url":"https://api.github.com/users/johnjbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjbarton/subscriptions","organizations_url":"https://api.github.com/users/johnjbarton/orgs","repos_url":"https://api.github.com/users/johnjbarton/repos","events_url":"https://api.github.com/users/johnjbarton/events{/privacy}","received_events_url":"https://api.github.com/users/johnjbarton/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T17:23:42Z","updated_at":"2015-02-20T17:23:42Z","body":"I want to focus on the issue related to \r\nSee http://code.google.com/p/chromium/issues/detail?id=457419\r\nand ensure that sourceURL is not emitted when sourceMappingURL is emitted. But I don't see that in my test case, only sourceMappingURL is emitted when `--sourcemaps` is used.\r\n"}}