{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/tools/issues/563","repository_url":"https://api.github.com/repos/Polymer/tools","labels_url":"https://api.github.com/repos/Polymer/tools/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/tools/issues/563/comments","events_url":"https://api.github.com/repos/Polymer/tools/issues/563/events","html_url":"https://github.com/Polymer/tools/issues/563","id":338049089,"node_id":"MDU6SXNzdWUzMzgwNDkwODk=","number":563,"title":"custom-elements-es5-adapter code not generated when using bundle and compile options together","user":{"login":"zeeshanhyder","id":1282185,"node_id":"MDQ6VXNlcjEyODIxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1282185?v=4","gravatar_id":"","url":"https://api.github.com/users/zeeshanhyder","html_url":"https://github.com/zeeshanhyder","followers_url":"https://api.github.com/users/zeeshanhyder/followers","following_url":"https://api.github.com/users/zeeshanhyder/following{/other_user}","gists_url":"https://api.github.com/users/zeeshanhyder/gists{/gist_id}","starred_url":"https://api.github.com/users/zeeshanhyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeeshanhyder/subscriptions","organizations_url":"https://api.github.com/users/zeeshanhyder/orgs","repos_url":"https://api.github.com/users/zeeshanhyder/repos","events_url":"https://api.github.com/users/zeeshanhyder/events{/privacy}","received_events_url":"https://api.github.com/users/zeeshanhyder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T20:48:26Z","updated_at":"2018-09-14T12:18:37Z","closed_at":null,"author_association":"NONE","body":"When building `compile: true ` and `bundle: true` in `polymer.json`,  custom-elements-es5-adapter code is not generated. However if i just use `compile: true` option, in that case, the code gets generated. Even if i manually put `<script src=''./node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js></script>`, this tag gets read and code is transpiled, no matter even if i `exclude` it in `compile` option. Any inputs?\r\n\r\nNode: 8.11\r\nPolymer CLI: 1.7.7\r\nPolymer: 3.0.2\r\nWebcomponents: 2.0.2"},"comment":{"url":"https://api.github.com/repos/Polymer/tools/issues/comments/421341091","html_url":"https://github.com/Polymer/tools/issues/563#issuecomment-421341091","issue_url":"https://api.github.com/repos/Polymer/tools/issues/563","id":421341091,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTM0MTA5MQ==","user":{"login":"DavidHenri008","id":33123302,"node_id":"MDQ6VXNlcjMzMTIzMzAy","avatar_url":"https://avatars3.githubusercontent.com/u/33123302?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidHenri008","html_url":"https://github.com/DavidHenri008","followers_url":"https://api.github.com/users/DavidHenri008/followers","following_url":"https://api.github.com/users/DavidHenri008/following{/other_user}","gists_url":"https://api.github.com/users/DavidHenri008/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidHenri008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidHenri008/subscriptions","organizations_url":"https://api.github.com/users/DavidHenri008/orgs","repos_url":"https://api.github.com/users/DavidHenri008/repos","events_url":"https://api.github.com/users/DavidHenri008/events{/privacy}","received_events_url":"https://api.github.com/users/DavidHenri008/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T12:18:37Z","updated_at":"2018-09-14T12:18:37Z","author_association":"NONE","body":"I have a similar case where the `<script src=''./node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js></script>` is not added to the built index.html file.\r\nIn my case, it happens when I define an exclude folder in my compile build configuration. However if I set compile at true it works.\r\n\r\nNot Working:\r\n```\r\n\"builds\": [\r\n    {\r\n      \"preset\": \"es5-bundled\",\r\n      \"js\": {\r\n        \"compile\": {\r\n          \"exclude\": [\"help\\\\template\\\\scripts\\\\*.js\"]\r\n        }\r\n      }\r\n    }\r\n  ],\r\n```\r\n\r\nWorking:\r\n```\r\n\"builds\": [\r\n    {\r\n      \"preset\": \"es5-bundled\",\r\n      \"js\": {\r\n        \"compile\": true\r\n      }\r\n    }\r\n  ],\r\n```\r\n\r\nNode: 8.11\r\nPolymer CLI: 1.8.0\r\nPolymer: 2.6.1\r\nWebcomponents: 2.1.2"}}
{"actor":{"display_login":"DavidHenri008"}}