{"action":"created","issue":{"url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/1","labels_url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/1/comments","events_url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/1/events","html_url":"https://github.com/jakobwesthoff/source-map-merger/pull/1","id":109890264,"number":1,"title":"Adding the ability to *ignore* missing mappings.","user":{"login":"jvilk","id":1141042,"avatar_url":"https://avatars.githubusercontent.com/u/1141042?v=3","gravatar_id":"","url":"https://api.github.com/users/jvilk","html_url":"https://github.com/jvilk","followers_url":"https://api.github.com/users/jvilk/followers","following_url":"https://api.github.com/users/jvilk/following{/other_user}","gists_url":"https://api.github.com/users/jvilk/gists{/gist_id}","starred_url":"https://api.github.com/users/jvilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvilk/subscriptions","organizations_url":"https://api.github.com/users/jvilk/orgs","repos_url":"https://api.github.com/users/jvilk/repos","events_url":"https://api.github.com/users/jvilk/events{/privacy}","received_events_url":"https://api.github.com/users/jvilk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T21:30:17Z","updated_at":"2015-10-06T18:18:57Z","closed_at":"2015-10-06T17:29:18Z","pull_request":{"url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/pulls/1","html_url":"https://github.com/jakobwesthoff/source-map-merger/pull/1","diff_url":"https://github.com/jakobwesthoff/source-map-merger/pull/1.diff","patch_url":"https://github.com/jakobwesthoff/source-map-merger/pull/1.patch"},"body":"Adds the (optional) ability to *ignore* missing mappings. Also, adds a test that exercises this option using the source code of a module from a real-world program, and bumps the version number to `0.2` to indicate the new API functionality.\r\n\r\nI encountered this issue with TypeScript. Occasionally, single-line lambdas will not provide a mapping from the `return` statement in the generated JS. For example, `() => \"hello\"` becomes `function() { return \"hello\"; }`; the mapping would provide mappings for all parts of the output, save for the `return` keyword.\r\n\r\nI could not find a simple use-case that triggered this behavior (the example above does not exhibit the bug); I could only find it in my real-world program (which I use as the test-case).\r\n\r\nIn the interest of having a working source map, I added an option to `source-map-merger` that *ignores* these missing ranges in order to produce a mostly complete merged source map. I believe this to be a desirable feature.\r\n\r\nLet me know if you have any issues with my coding conventions or style. I look forward to a published v0.2 that I can use!"},"comment":{"url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/comments/145952554","html_url":"https://github.com/jakobwesthoff/source-map-merger/pull/1#issuecomment-145952554","issue_url":"https://api.github.com/repos/jakobwesthoff/source-map-merger/issues/1","id":145952554,"user":{"login":"jvilk","id":1141042,"avatar_url":"https://avatars.githubusercontent.com/u/1141042?v=3","gravatar_id":"","url":"https://api.github.com/users/jvilk","html_url":"https://github.com/jvilk","followers_url":"https://api.github.com/users/jvilk/followers","following_url":"https://api.github.com/users/jvilk/following{/other_user}","gists_url":"https://api.github.com/users/jvilk/gists{/gist_id}","starred_url":"https://api.github.com/users/jvilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvilk/subscriptions","organizations_url":"https://api.github.com/users/jvilk/orgs","repos_url":"https://api.github.com/users/jvilk/repos","events_url":"https://api.github.com/users/jvilk/events{/privacy}","received_events_url":"https://api.github.com/users/jvilk/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T18:18:57Z","updated_at":"2015-10-06T18:18:57Z","body":":heart: thanks! could you also publish v0.2.0 to NPM? I want to officially depend on it in a [grunt task](https://github.com/jvilk/grunt-merge-source-maps) I'm working on."}}