{"action":"opened","issue":{"url":"https://api.github.com/repos/neocotic/qrious/issues/59","repository_url":"https://api.github.com/repos/neocotic/qrious","labels_url":"https://api.github.com/repos/neocotic/qrious/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/neocotic/qrious/issues/59/comments","events_url":"https://api.github.com/repos/neocotic/qrious/issues/59/events","html_url":"https://github.com/neocotic/qrious/issues/59","id":180937678,"number":59,"title":"Reduce size of distribution files","user":{"login":"neocotic","id":266736,"avatar_url":"https://avatars.githubusercontent.com/u/266736?v=3","gravatar_id":"","url":"https://api.github.com/users/neocotic","html_url":"https://github.com/neocotic","followers_url":"https://api.github.com/users/neocotic/followers","following_url":"https://api.github.com/users/neocotic/following{/other_user}","gists_url":"https://api.github.com/users/neocotic/gists{/gist_id}","starred_url":"https://api.github.com/users/neocotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neocotic/subscriptions","organizations_url":"https://api.github.com/users/neocotic/orgs","repos_url":"https://api.github.com/users/neocotic/repos","events_url":"https://api.github.com/users/neocotic/events{/privacy}","received_events_url":"https://api.github.com/users/neocotic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neocotic/qrious/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/neocotic/qrious/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/neocotic/qrious/milestones/10","html_url":"https://github.com/neocotic/qrious/milestones/3.0.0","labels_url":"https://api.github.com/repos/neocotic/qrious/milestones/10/labels","id":1925857,"number":10,"title":"3.0.0","description":"","creator":{"login":"neocotic","id":266736,"avatar_url":"https://avatars.githubusercontent.com/u/266736?v=3","gravatar_id":"","url":"https://api.github.com/users/neocotic","html_url":"https://github.com/neocotic","followers_url":"https://api.github.com/users/neocotic/followers","following_url":"https://api.github.com/users/neocotic/following{/other_user}","gists_url":"https://api.github.com/users/neocotic/gists{/gist_id}","starred_url":"https://api.github.com/users/neocotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neocotic/subscriptions","organizations_url":"https://api.github.com/users/neocotic/orgs","repos_url":"https://api.github.com/users/neocotic/repos","events_url":"https://api.github.com/users/neocotic/events{/privacy}","received_events_url":"https://api.github.com/users/neocotic/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-08-05T16:27:31Z","updated_at":"2016-10-04T16:10:34Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-10-04T16:10:33Z","updated_at":"2016-10-04T16:10:33Z","closed_at":null,"body":"Since we're using Babel to compile our ES6-based source code into JavaScript that's supported everywhere our distribution files contained quite a few Babel helpers to achieve this. However, in order to fix #55, we were required to include `babel-runtime` in our distribution files as well since, as a library, we can't really rely on external polyfills so this includes all those that are needed to run on older browser versions.\r\n\r\nUnfortunately, this has resulted in a significant increase to the size of our distribution files:\r\n\r\nFormat | Minified | Size in 2.0.2 (KB) | Size in 2.1.0 (KB) | Increase (%) \r\n-------- | --------- | ------------------ | ------------------ | -------------\r\nCJS | No | 60.7 | 109 | 79.6\r\nUMD | No | 64 | 111 | 73.4\r\nUMD | Yes | 20.6 | 35.8 | 73.8\r\n\r\nI'm not really happy that, in order to use Babel to compile my library, we have to include so much Babel code in our own distribution files. We're using Rollup so that should be reducing exactly what's included to only what's being used. If this is the cost of using Babel in a library, then I'm open to going back to ES5 source code and only using Rollup for bundling. I've already started doing this with other libraries that I manage to avoid this distribution size increase.\r\n\r\nI'll try to have a look to see what other libraries are doing out there that use Babel+Rollup to compile their code. If it comes down to browser/Node.js feature support, I might just have to track down what we're using that needs polyfilled and try to replace these individually. However, until we get some form of unit tests and automated cross-browser testing in place (which I'm struggling to find the time/energy to do), this could be a very long process.\r\n\r\nWhat I'd like to understand is what options are available to us."}}
{"actor":{"display_login":"neocotic"}}