Title: BuildOptimizer breaks 3rd party library · Issue #12096 · angular/angular-cli · GitHub
Open Graph Title: BuildOptimizer breaks 3rd party library · Issue #12096 · angular/angular-cli
X Title: BuildOptimizer breaks 3rd party library · Issue #12096 · angular/angular-cli
Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
Open Graph Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
X Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular-cli
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BuildOptimizer breaks 3rd party library","articleBody":"_From @Enngage on May 18, 2018 8:17_\n\n### 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\n\n_Copied from original issue: angular/devkit#937_","author":{"url":"https://github.com/alexeagle","@type":"Person","name":"alexeagle"},"datePublished":"2018-09-04T23:02:41Z","url":"https://github.com/angular/angular-cli/issues/12096"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:08442b71-6f13-eb5b-27c8-cb85fd1b8589 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B83E:1D8AA1:14BD12C:1B47B4D:6B011F0E |
| html-safe-nonce | 8f394dd31b71a8bd2cff61186f7b8d17e10195efc938a466e2d6cf5d2710a999 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODNFOjFEOEFBMToxNEJEMTJDOjFCNDdCNEQ6NkIwMTFGMEUiLCJ2aXNpdG9yX2lkIjoiOTQyNjA2MzU1MzA1NDA2MjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 71dce9b7ddaa2531ef5d90cd993e4858ec50547974396c436824753b6d116a93 |
| hovercard-subject-tag | repository:36891867 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angular-cli/issues/12096 |
| twitter:image | https://repository-images.githubusercontent.com/36891867/7600907d-5c07-47a5-a7b5-80b9c8922d6c |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/36891867/7600907d-5c07-47a5-a7b5-80b9c8922d6c |
| og:image:alt | CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width