{"action":"created","issue":{"url":"https://api.github.com/repos/angular/devkit/issues/937","repository_url":"https://api.github.com/repos/angular/devkit","labels_url":"https://api.github.com/repos/angular/devkit/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/angular/devkit/issues/937/comments","events_url":"https://api.github.com/repos/angular/devkit/issues/937/events","html_url":"https://github.com/angular/devkit/issues/937","id":324313514,"number":937,"title":"BuildOptimizer breaks 3rd party library","user":{"login":"Enngage","id":7137351,"avatar_url":"https://avatars0.githubusercontent.com/u/7137351?v=4","gravatar_id":"","url":"https://api.github.com/users/Enngage","html_url":"https://github.com/Enngage","followers_url":"https://api.github.com/users/Enngage/followers","following_url":"https://api.github.com/users/Enngage/following{/other_user}","gists_url":"https://api.github.com/users/Enngage/gists{/gist_id}","starred_url":"https://api.github.com/users/Enngage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enngage/subscriptions","organizations_url":"https://api.github.com/users/Enngage/orgs","repos_url":"https://api.github.com/users/Enngage/repos","events_url":"https://api.github.com/users/Enngage/events{/privacy}","received_events_url":"https://api.github.com/users/Enngage/received_events","type":"User","site_admin":false},"labels":[{"id":660332181,"url":"https://api.github.com/repos/angular/devkit/labels/comp:%20angular-devkit/build-optimizer","name":"comp: angular-devkit/build-optimizer","color":"c5def5","default":false},{"id":845455761,"url":"https://api.github.com/repos/angular/devkit/labels/need:%20repro%20steps","name":"need: repro steps","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-18T08:17:35Z","updated_at":"2018-05-18T14:39:31Z","closed_at":null,"author_association":"NONE","body":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x ] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Area\r\n```\r\n- [x] devkit\r\n- [ ] schematics\r\n```\r\n\r\n### Versions\r\nnpm 5.6.0\r\nnode v8.9.4\r\nWindows (10\r\n\r\n### Repro steps\r\n\r\nI have [this simple angular library](https://github.com/Enngage/ngx-masonry-gallery) repo where I use [masonry js](https://masonry.desandro.com) library. Everything works perfectly fine ([demo](https://enngage.github.io/ngx-masonry-gallery/)) as long as `buildOptimizer` is disabled:\r\n\r\n`\"buildOptimizer\": false`\r\n\r\nHowever, as soon as I enable it, some animations (not all!) are broken. I'm pretty confident this is not the issue in the masonry js library, rather it seems like build optimizer might be tampering with the code in some way. \r\n\r\nIs there a way to 'disable' build optimizer for this library only? Or could this be part of a bigger problem somewhere?\r\n\r\n\r\n### The log given by the failure\r\nNo errors/warnings logged anywhere.\r\n\r\n### Desired functionality\r\nDon't break code of external libraries.\r\n\r\n\r\n### Mention any other details that might be useful\r\n[Angular.json](https://github.com/Enngage/ngx-masonry-gallery/blob/master/angular.json#L46)\r\n"},"comment":{"url":"https://api.github.com/repos/angular/devkit/issues/comments/390228454","html_url":"https://github.com/angular/devkit/issues/937#issuecomment-390228454","issue_url":"https://api.github.com/repos/angular/devkit/issues/937","id":390228454,"user":{"login":"Enngage","id":7137351,"avatar_url":"https://avatars0.githubusercontent.com/u/7137351?v=4","gravatar_id":"","url":"https://api.github.com/users/Enngage","html_url":"https://github.com/Enngage","followers_url":"https://api.github.com/users/Enngage/followers","following_url":"https://api.github.com/users/Enngage/following{/other_user}","gists_url":"https://api.github.com/users/Enngage/gists{/gist_id}","starred_url":"https://api.github.com/users/Enngage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enngage/subscriptions","organizations_url":"https://api.github.com/users/Enngage/orgs","repos_url":"https://api.github.com/users/Enngage/repos","events_url":"https://api.github.com/users/Enngage/events{/privacy}","received_events_url":"https://api.github.com/users/Enngage/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T14:39:31Z","updated_at":"2018-05-18T14:39:31Z","author_association":"NONE","body":"Thanks for the response! Sure, I understand - this is the [minimal code](https://github.com/Enngage/build-optimizer/blob/master/src/app/app.component.ts) I could come up with (repo generated with `ng new`).\r\n\r\nTo reproduce:\r\n\r\n```\r\nnpm i\r\nng serve --prod\r\n```\r\n\r\nYou should see new image appear with **no animation** each second. When you use either `ng --serve` or disable the `buildOptimizer` in `angular.json` you will see each image nicely appear as expected.\r\n\r\nLet me know if you need anything else."}}
{"actor":{"display_login":"Enngage"}}