{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4230","labels_url":"https://api.github.com/repos/facebook/react/issues/4230/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4230/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4230/events","html_url":"https://github.com/facebook/react/pull/4230","id":91146083,"number":4230,"title":"Bundle into a flat file","user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-26T04:02:33Z","updated_at":"2015-06-26T10:57:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react/pulls/4230","html_url":"https://github.com/facebook/react/pull/4230","diff_url":"https://github.com/facebook/react/pull/4230.diff","patch_url":"https://github.com/facebook/react/pull/4230.patch"},"body":"Just sharing. Can look at incorporating this into our build pipeline if we want to. Produces files that look like https://gist.github.com/spicyj/19df83d04eaad215b92b.\r\n\r\n```\r\n$ node pack-flat.js >react-flat.js\r\n$ cat react-flat.js | ./node_modules/.bin/uglifyjs -c -m >react-flat.min.js\r\n```\r\n\r\nCuriously, it's bigger after gzipping than the other way:\r\n\r\n```\r\n$ wc -c react-flat.js react-flat.min.js build/react.js build/react.min.js\r\n  662769 react-flat.js\r\n  121416 react-flat.min.js\r\n  601727 build/react.js\r\n  124097 build/react.min.js\r\n 1510009 total\r\n$ gzip <react-flat.min.js | wc -c\r\n   38355\r\n$ gzip <build/react.min.js | wc -c\r\n   36602\r\n```\r\n\r\nInitial startup execution cost looks to be about 14% less though."},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/115646463","html_url":"https://github.com/facebook/react/pull/4230#issuecomment-115646463","issue_url":"https://api.github.com/repos/facebook/react/issues/4230","id":115646463,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T10:57:42Z","updated_at":"2015-06-26T10:57:42Z","body":"The file would be a lot bigger."}}