{"action":"created","issue":{"url":"https://api.github.com/repos/projectfluent/fluent.js/issues/269","repository_url":"https://api.github.com/repos/projectfluent/fluent.js","labels_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/269/comments","events_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/269/events","html_url":"https://github.com/projectfluent/fluent.js/issues/269","id":349161952,"node_id":"MDU6SXNzdWUzNDkxNjE5NTI=","number":269,"title":"Change how the compat builds are produced","user":{"login":"stasm","id":265818,"node_id":"MDQ6VXNlcjI2NTgxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/265818?v=4","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-09T14:49:17Z","updated_at":"2018-08-09T14:49:44Z","closed_at":null,"author_association":"MEMBER","body":"#133 changed the browser compatibility matrix of our `compat` builds. It was a good decision for Fluent and for the web. Unfortunately, while most browser support modern JavaScript, it turns out a significant portion of build tools like Webpack and more specifically, UglifyJS, do not 🤦‍♂️ .\r\n\r\nI'm afraid we might need to re-implement strict ES5 compatibility in one way or another. I don't think we can expect existing projects to go through the whole ordeal of updating their build pipeline just to be able to use a newer version of `fluent` and friends.\r\n\r\nRight now we produce two builds for each package:\r\n\r\n- `index` - no transpilation at all, and\r\n- `compat` - transpiled according to the modern compatibility matrix.\r\n\r\nThe moder compatiblity matrix expects the engine to support async functions, classes and generators, among others.\r\n\r\nI propose we switch to the following strategy:\r\n\r\n- `index` - transpiled according to the modern compatibility matrix,\r\n- `compat` - transpiled to strictly ES5-compatible code,\r\n- `vanilla` - not transpiled at all. This could also be called `modern` or `ecma`.\r\n\r\nThe `vanilla` builds will be allowed to use cutting-edge features like async iteration, implemented only in Firefox 57 and Chrome 63."},"comment":{"url":"https://api.github.com/repos/projectfluent/fluent.js/issues/comments/411784727","html_url":"https://github.com/projectfluent/fluent.js/issues/269#issuecomment-411784727","issue_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/269","id":411784727,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTc4NDcyNw==","user":{"login":"stasm","id":265818,"node_id":"MDQ6VXNlcjI2NTgxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/265818?v=4","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T14:49:44Z","updated_at":"2018-08-09T14:49:44Z","author_association":"MEMBER","body":"@Pike, @zbraniecki - go / no go?"}}
{"actor":{"display_login":"stasm"}}