{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/700","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/700/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/700/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/700","id":72682766,"number":700,"title":"Invalid sourcemaps being created","user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-02T18:54:54Z","updated_at":"2015-05-28T02:42:59Z","closed_at":null,"body":"I've been using Uglify to generate source maps via the API, such as:\r\n\r\n```\r\nvar result = uglify.minify(filename, { outSourceMap: mapFilename });\r\n```\r\n\r\nWhen I do this, the resulting sourcemap had the following errors:\r\n\r\n1. The `file` field is `mapFilename` instead of `filename`\r\n1. The filename in `sources` field contains extra path information, which confuses Dev tools (should have the path info as relative to `file` only)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/106152640","html_url":"https://github.com/mishoo/UglifyJS2/issues/700#issuecomment-106152640","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/700","id":106152640,"user":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T02:42:59Z","updated_at":"2015-05-28T02:42:59Z","body":"OK, worked out the issues with `yargs` and they're releasing an update that addresses the needs I have here. And I've now posted the code that brings both the API and the CLI up to \"spec\" of what I outlined above. Again, here's that diff: https://github.com/mishoo/UglifyJS2/compare/c6fa2915715f0a1a2b1527c23388bd7de56284c4...getify:master\r\n\r\nWould still very much like feedback on this, as I'm about to formalize it as a PR."}}