{"action":"created","issue":{"url":"https://api.github.com/repos/substack/webworkify/issues/12","labels_url":"https://api.github.com/repos/substack/webworkify/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/substack/webworkify/issues/12/comments","events_url":"https://api.github.com/repos/substack/webworkify/issues/12/events","html_url":"https://github.com/substack/webworkify/issues/12","id":98595188,"number":12,"title":"Generated worker blob includes main dependency graph","user":{"login":"timkurvers","id":378235,"avatar_url":"https://avatars.githubusercontent.com/u/378235?v=3","gravatar_id":"","url":"https://api.github.com/users/timkurvers","html_url":"https://github.com/timkurvers","followers_url":"https://api.github.com/users/timkurvers/followers","following_url":"https://api.github.com/users/timkurvers/following{/other_user}","gists_url":"https://api.github.com/users/timkurvers/gists{/gist_id}","starred_url":"https://api.github.com/users/timkurvers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timkurvers/subscriptions","organizations_url":"https://api.github.com/users/timkurvers/orgs","repos_url":"https://api.github.com/users/timkurvers/repos","events_url":"https://api.github.com/users/timkurvers/events{/privacy}","received_events_url":"https://api.github.com/users/timkurvers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-02T09:14:55Z","updated_at":"2015-11-03T02:42:58Z","closed_at":null,"body":"The sample main/worker setup from the README includes `webworkify` in the worker blob, even though it's not required from the worker.\r\n\r\nIn the application I'm currently working on this results in a blob of approximately 1.1MB, for the following worker, due to the sheer size of the rest of the bundle:\r\n\r\n```javascript\r\nmodule.exports = function(self) {\r\n  console.log('hello world!');\r\n};\r\n```\r\n\r\nThe culprit seems to be [usage of `Object.keys(sources)`](https://github.com/substack/webworkify/blob/master/index.js#L41) which will include all sources up to that point.\r\n\r\nIs this by design?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/substack/webworkify/issues/comments/153221417","html_url":"https://github.com/substack/webworkify/issues/12#issuecomment-153221417","issue_url":"https://api.github.com/repos/substack/webworkify/issues/12","id":153221417,"user":{"login":"kumavis","id":1474978,"avatar_url":"https://avatars.githubusercontent.com/u/1474978?v=3","gravatar_id":"","url":"https://api.github.com/users/kumavis","html_url":"https://github.com/kumavis","followers_url":"https://api.github.com/users/kumavis/followers","following_url":"https://api.github.com/users/kumavis/following{/other_user}","gists_url":"https://api.github.com/users/kumavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kumavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumavis/subscriptions","organizations_url":"https://api.github.com/users/kumavis/orgs","repos_url":"https://api.github.com/users/kumavis/repos","events_url":"https://api.github.com/users/kumavis/events{/privacy}","received_events_url":"https://api.github.com/users/kumavis/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T02:42:58Z","updated_at":"2015-11-03T02:42:58Z","body":"@timkurvers ever come up with a clever solution here?"}}