{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/6715","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/6715/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/6715/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/6715/events","html_url":"https://github.com/meteor/meteor/issues/6715","id":146206630,"number":6715,"title":"NPM packages and source maps.","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/feature","name":"feature","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/meteor/meteor/milestones/9","html_url":"https://github.com/meteor/meteor/milestones/Post-1.3","labels_url":"https://api.github.com/repos/meteor/meteor/milestones/9/labels","id":1527564,"number":9,"title":"Post-1.3","description":null,"creator":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":4,"state":"open","created_at":"2016-01-20T21:21:02Z","updated_at":"2016-04-06T19:19:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-04-06T06:57:10Z","updated_at":"2016-04-06T22:02:04Z","closed_at":null,"body":"Some NPM packages are compiled with Babel, then the compiled files placed in a `dist` folder with the `main`field pointing to the entry point for example. Those files often contain bable syntax and use babel helpers. \r\n\r\nWhen those packages throw errors, etc, what would be the best practice so that Meteor can (or could in the future) use source maps for those files?\r\n\r\nIf Meteor has no source map feature at all for NPM packages currently, could there perhaps be a convention for Meteor to look along side a file for it's source map? For example, `dist/main.js` would have `dist/main.js.map`. Does Meteor look at inline sourcemaps that are left as comments inside the files?\r\n\r\nIt'd be nice to have some sort of convention (if it doesn't already exist) for source mapping NPM packages in Meteor (or in NPM in general), as currently if there's an error from an NPM package's transpiled code, we see that ugly code in the console while investigating the error."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/206590068","html_url":"https://github.com/meteor/meteor/issues/6715#issuecomment-206590068","issue_url":"https://api.github.com/repos/meteor/meteor/issues/6715","id":206590068,"user":{"login":"benjamn","id":5750,"avatar_url":"https://avatars.githubusercontent.com/u/5750?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamn","html_url":"https://github.com/benjamn","followers_url":"https://api.github.com/users/benjamn/followers","following_url":"https://api.github.com/users/benjamn/following{/other_user}","gists_url":"https://api.github.com/users/benjamn/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamn/subscriptions","organizations_url":"https://api.github.com/users/benjamn/orgs","repos_url":"https://api.github.com/users/benjamn/repos","events_url":"https://api.github.com/users/benjamn/events{/privacy}","received_events_url":"https://api.github.com/users/benjamn/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T22:02:04Z","updated_at":"2016-04-06T22:02:04Z","body":"Though inline source maps are appealing in many cases, the `//# sourceMappingURL=...` doesn't have to be an inline `data:` URL. It can be the relative path of a file on the file system somewhere nearby, which I think would satisfy your concerns?"}}