{"action":"created","issue":{"url":"https://api.github.com/repos/substack/node-browserify/issues/1228","labels_url":"https://api.github.com/repos/substack/node-browserify/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/substack/node-browserify/issues/1228/comments","events_url":"https://api.github.com/repos/substack/node-browserify/issues/1228/events","html_url":"https://github.com/substack/node-browserify/issues/1228","id":70668907,"number":1228,"title":"checking for the existance of Buffer causes it to exist","user":{"login":"KoryNunn","id":1401037,"avatar_url":"https://avatars.githubusercontent.com/u/1401037?v=3","gravatar_id":"","url":"https://api.github.com/users/KoryNunn","html_url":"https://github.com/KoryNunn","followers_url":"https://api.github.com/users/KoryNunn/followers","following_url":"https://api.github.com/users/KoryNunn/following{/other_user}","gists_url":"https://api.github.com/users/KoryNunn/gists{/gist_id}","starred_url":"https://api.github.com/users/KoryNunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoryNunn/subscriptions","organizations_url":"https://api.github.com/users/KoryNunn/orgs","repos_url":"https://api.github.com/users/KoryNunn/repos","events_url":"https://api.github.com/users/KoryNunn/events{/privacy}","received_events_url":"https://api.github.com/users/KoryNunn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-24T11:46:34Z","updated_at":"2015-04-27T01:06:36Z","closed_at":null,"body":"Some modules check for the existence of Buffer but don't require it to work. Because the identifier `Buffer` is seen by browserify, it becomes bundled. Buffer addes quite a lot of code to a bundle that often isn't needed. (About 40kB)\r\n\r\nAn example of this is if you require [clone](https://www.npmjs.com/package/clone), which checks if `Buffer` exists, and therefore causes it to be added to a browserified bundle. \r\n\r\nIt would be handy to be able to explicitly tag that your module does not require Buffer in the package.json (even if you use the `Buffer` identifier in your source) to allow for it to be not added if possible."},"comment":{"url":"https://api.github.com/repos/substack/node-browserify/issues/comments/96455265","html_url":"https://github.com/substack/node-browserify/issues/1228#issuecomment-96455265","issue_url":"https://api.github.com/repos/substack/node-browserify/issues/1228","id":96455265,"user":{"login":"KoryNunn","id":1401037,"avatar_url":"https://avatars.githubusercontent.com/u/1401037?v=3","gravatar_id":"","url":"https://api.github.com/users/KoryNunn","html_url":"https://github.com/KoryNunn","followers_url":"https://api.github.com/users/KoryNunn/followers","following_url":"https://api.github.com/users/KoryNunn/following{/other_user}","gists_url":"https://api.github.com/users/KoryNunn/gists{/gist_id}","starred_url":"https://api.github.com/users/KoryNunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoryNunn/subscriptions","organizations_url":"https://api.github.com/users/KoryNunn/orgs","repos_url":"https://api.github.com/users/KoryNunn/repos","events_url":"https://api.github.com/users/KoryNunn/events{/privacy}","received_events_url":"https://api.github.com/users/KoryNunn/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T01:06:36Z","updated_at":"2015-04-27T01:06:36Z","body":"Nice, works well in the meantime, thanks @zertosh "}}