{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/tools/issues/539","repository_url":"https://api.github.com/repos/Polymer/tools","labels_url":"https://api.github.com/repos/Polymer/tools/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/tools/issues/539/comments","events_url":"https://api.github.com/repos/Polymer/tools/issues/539/events","html_url":"https://github.com/Polymer/tools/issues/539","id":335361145,"node_id":"MDU6SXNzdWUzMzUzNjExNDU=","number":539,"title":"[project-config] Uncompiled presets","user":{"login":"ranb2002","id":7907713,"node_id":"MDQ6VXNlcjc5MDc3MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7907713?v=4","gravatar_id":"","url":"https://api.github.com/users/ranb2002","html_url":"https://github.com/ranb2002","followers_url":"https://api.github.com/users/ranb2002/followers","following_url":"https://api.github.com/users/ranb2002/following{/other_user}","gists_url":"https://api.github.com/users/ranb2002/gists{/gist_id}","starred_url":"https://api.github.com/users/ranb2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranb2002/subscriptions","organizations_url":"https://api.github.com/users/ranb2002/orgs","repos_url":"https://api.github.com/users/ranb2002/repos","events_url":"https://api.github.com/users/ranb2002/events{/privacy}","received_events_url":"https://api.github.com/users/ranb2002/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T11:10:32Z","updated_at":"2018-06-25T22:54:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nIs there a reason why the `uncompiled-bundled` and the `uncompiled-unbundled` presets have **es2018** in browserCapabilities instead of **es2016** in the [builds.ts](https://github.com/Polymer/tools/blob/dd1c8bbb44f37f67974fbabf878b7a495ffeb6f6/packages/project-config/src/builds.ts#L224-L249) file of project-config package?\r\n\r\nAlso, as these presets are uncompiled, should they have `module` as browser capabilities? By example, this [version](https://benjaminrancourt-int.firebaseapp.com/en) of my personal website with Polymer 3 and prpl-node-server throws an error when serving the uncompiled-bundled in Firefox 60 :\r\n```\r\nSyntaxError: expected expression, got keyword 'import'\r\n```\r\nas ES Modules are not yet completely supported in Firefox ([browser-capabilities](https://github.com/Polymer/tools/blob/dd1c8bbb44f37f67974fbabf878b7a495ffeb6f6/packages/browser-capabilities/src/browser-capabilities.ts#L118-L127)).\r\n\r\nFinally, in the [Polymer documentaition](https://github.com/Polymer/docs/blob/master/app/3.0/toolbox/build-for-production.md), the Polymer team recommends to serve ES6 build to the browsers that supported it for better performance and `uncompiled-unbundled` \r\n\r\n> is suitable for serving an implementation of the PRPL pattern to browsers that use the latest JavaScript features\r\n\r\n Is there other gains to serve the `uncompiled` builds aside to use the latest features?\r\n\r\nLet me know if you want me to make a pull request to update project-config.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Polymer/tools/issues/comments/400121231","html_url":"https://github.com/Polymer/tools/issues/539#issuecomment-400121231","issue_url":"https://api.github.com/repos/Polymer/tools/issues/539","id":400121231,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDEyMTIzMQ==","user":{"login":"aomarks","id":48894,"node_id":"MDQ6VXNlcjQ4ODk0","avatar_url":"https://avatars0.githubusercontent.com/u/48894?v=4","gravatar_id":"","url":"https://api.github.com/users/aomarks","html_url":"https://github.com/aomarks","followers_url":"https://api.github.com/users/aomarks/followers","following_url":"https://api.github.com/users/aomarks/following{/other_user}","gists_url":"https://api.github.com/users/aomarks/gists{/gist_id}","starred_url":"https://api.github.com/users/aomarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aomarks/subscriptions","organizations_url":"https://api.github.com/users/aomarks/orgs","repos_url":"https://api.github.com/users/aomarks/repos","events_url":"https://api.github.com/users/aomarks/events{/privacy}","received_events_url":"https://api.github.com/users/aomarks/received_events","type":"User","site_admin":false},"created_at":"2018-06-25T22:54:36Z","updated_at":"2018-06-25T22:54:36Z","author_association":"CONTRIBUTOR","body":"Uncompiled means that you could use any JavaScript feature, and it will not be transpiled, so only browsers that support all of the latest JavaScript features (ES2018 at this time) are safe to serve that to. So I think this is currently correct.\r\n\r\nFor modules, yes I think you're right, the uncompiled builds should require modules. A PR to update that would be welcome!"}}
{"actor":{"display_login":"aomarks"}}