Title: Production build changes app behavior (some required code is removed from the bundle) · Issue #17494 · angular/angular-cli · GitHub
Open Graph Title: Production build changes app behavior (some required code is removed from the bundle) · Issue #17494 · angular/angular-cli
X Title: Production build changes app behavior (some required code is removed from the bundle) · Issue #17494 · angular/angular-cli
Description: 🐞 bug report Affected Package The issue is caused by package @angular/.... Is this a regression? Not sure Description Leaflet library contains the following code: https://github.com/Leaflet/Leaflet/blob/984fedda1c48d141f018ca45ae06738872...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/.... Is this a regression? Not sure Description Leaflet library contains the following code: https://github.com/Leaflet/Leaflet...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/.... Is this a regression? Not sure Description Leaflet library contains the following code: https://github.com/Leaflet/Leaflet...
Opengraph URL: https://github.com/angular/angular-cli/issues/17494
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Production build changes app behavior (some required code is removed from the bundle)","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> The issue is caused by package @angular/....\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\nNot sure\r\n\r\n### Description\r\n\r\nLeaflet library contains the following code:\r\nhttps://github.com/Leaflet/Leaflet/blob/984fedda1c48d141f018ca45ae06738872d7f5dd/src/layer/tile/GridLayer.js#L393-L394\r\nLooks like it's a kind of hack that forces a browser to update a page layout and to start the animation (css transition).\r\nhttps://stackoverflow.com/a/24195559/1989716\r\n\r\nIn dev build everything works as expected.\r\nWhen using `ng build --prod` mentioned above lines are removed from the bundle:\r\n`this._setZoomTransform(i,r.getCenter(),r.getZoom()),this._onCreateLevel(i))`\r\nso the animation is broken.\r\n\r\nLeaflet author closed the issue:\r\nhttps://github.com/Leaflet/Leaflet/issues/7096\r\n\r\nSince angular and leaflet are both very popular, it would be great to provide a compatibility.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\u003c!-- run `ng version` and paste output below -->\r\nAngular CLI: 9.1.1\r\nNode: 10.16.0\r\nOS: win32 x64\r\n\r\nAngular: 9.1.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.901.1\r\n@angular-devkit/build-angular 0.901.1\r\n@angular-devkit/build-optimizer 0.901.1\r\n@angular-devkit/build-webpack 0.901.1\r\n@angular-devkit/core 9.1.1\r\n@angular-devkit/schematics 9.1.1\r\n@angular/cli 9.1.1\r\n@ngtools/webpack 9.1.1\r\n@schematics/angular 9.1.1\r\n@schematics/update 0.901.1\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.42.0\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/t-denis","@type":"Person","name":"t-denis"},"datePublished":"2020-04-17T07:26:27Z","url":"https://github.com/angular/angular-cli/issues/17494"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b5cad4e6-2ad1-9cb6-0005-9f4b8d4839fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A17C:2652DC:1857553:1F1BCB1:6B012F01 |
| html-safe-nonce | 0376758c3668acdf1a2b5d0479e475116d3ed3734f24525d9fb8839e95aa524d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTdDOjI2NTJEQzoxODU3NTUzOjFGMUJDQjE6NkIwMTJGMDEiLCJ2aXNpdG9yX2lkIjoiNDQwNDUxODM5NzI1NDExOTE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d60d2bc8c945ad6879ac1af85b2403bb712c9642f9fffcf362c5cec3ad06759b |
| hovercard-subject-tag | issue:601911904 |
| 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/_view_fragments/issues/show/angular/angular-cli/17494/issue_layout |
| twitter:image | https://opengraph.githubassets.com/058187252842f6e9ba9babf584eb754b6c264c4effc54a1be907857c61f23bbb/angular/angular-cli/issues/17494 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/058187252842f6e9ba9babf584eb754b6c264c4effc54a1be907857c61f23bbb/angular/angular-cli/issues/17494 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/.... Is this a regression? Not sure Description Leaflet library contains the following code: https://github.com/Leaflet/Leaflet... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | t-denis |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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