Title: Increased initial main.js bundle size in v9 - mainly due to @angular/material packages · Issue #19610 · angular/components · GitHub
Open Graph Title: Increased initial main.js bundle size in v9 - mainly due to @angular/material packages · Issue #19610 · angular/components
X Title: Increased initial main.js bundle size in v9 - mainly due to @angular/material packages · Issue #19610 · angular/components
Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? yes, Description Our initial bundle increased after the upgrade to angular v9. Below 2 screen...
Open Graph Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? yes, Description Our initial bundle increased after t...
X Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? yes, Description Our initial bundle increased after t...
Opengraph URL: https://github.com/angular/components/issues/19610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Increased initial main.js bundle size in v9 - mainly due to @angular/material packages","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### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? -->\r\n\u003c!-- ✍️edit: -->\r\n\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\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\n\u003c!-- ✍️-->\r\nyes,\r\n\r\n### Description\r\n\r\nOur initial bundle increased after the upgrade to angular v9. Below 2 screenshots made with webpack-bundle-analyzer, both are build with the --prod tag on. The complete size of our app decreased in size, but the main bundle increased slightly.\r\n\r\nreporting this\r\n@filipesilva who mentioned the following\r\n> If you see your bundles increasing in size with Ivy, we want to know. Please open a new issue with a reproduction if possible. If you can’t publicly share your reproduction, consider sharing it privately instead.\r\n\r\nIn our case the initial bundle from the @angular module in angular 9.0.0 is increased by 170 kb (parsed) compared to the build size in angular 8.3.20\r\n\r\nANGULAR 9.0.0 bundle overview\r\n\u003cimg width=\"640\" alt=\"Screenshot 2020-02-07 at 09 21 38\" src=\"https://user-images.githubusercontent.com/39996339/74013512-e5ed3a80-498c-11ea-9a95-d7cf6dd2292e.png\">\r\n\r\nANGULAR 8.3.20 bundle overview\r\n\u003cimg width=\"488\" alt=\"Screenshot 2020-02-07 at 09 21 49\" src=\"https://user-images.githubusercontent.com/39996339/74013516-e71e6780-498c-11ea-8d4f-19c819ba5d1b.png\">\r\n\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nits a private repo, but can share an bitbucket account via a private message if needed\r\n\r\n## 🔥 Exception or Error\r\nbudle size difference\r\n\r\nAngular 9:\r\n\r\n\u003cpre>\u003ccode>\r\nchunk {33} polyfills-es2015.5bbe6128ce574187632a.js (polyfills) 97.3 kB [initial] [rendered]\r\nchunk {34} polyfills-es5.7489d086305aa2ccf313.js (polyfills-es5) 188 kB [initial] [rendered]\r\n--\r\nchunk {18} runtime-es2015.7b3c2daa7eda967f9d4b.js (runtime) 4.55 kB [entry] [rendered]\r\nchunk {18} runtime-es5.7b3c2daa7eda967f9d4b.js (runtime) 4.54 kB [entry] [rendered]\r\n--\r\nchunk {32} main-es2015.7771c8f8f77604a6a0fb.js (main) 1.13 MB [initial] [rendered]\r\nchunk {32} main-es5.7771c8f8f77604a6a0fb.js (main) 1.32 MB [initial] [rendered]\r\n--\r\nchunk {35} styles.96f30aa09bf98d520a7b.css (styles) 403 kB [initial] [rendered]\r\n\u003c/code>\u003c/pre>\r\nAngular 8:\r\n\r\n\u003cpre>\u003ccode>\r\nchunk {20} runtime-es2015.8dcc6cc63434c93fc456.js (runtime) 4.68 kB [entry] [rendered]\r\nchunk {20} runtime-es5.8dcc6cc63434c93fc456.js (runtime) 4.67 kB [entry] [rendered]\r\n--\r\nchunk {40} polyfills-es2015.c6262141f4f874e78e85.js (polyfills) 98.1 kB [initial] [rendered]\r\nchunk {41} polyfills-es5.468b140bd31c7a429390.js (polyfills-es5) 185 kB [initial] [rendered]\r\n--\r\nchunk {39} main-es2015.d68e6e1b9429135d5faf.js (main) 1.02 MB [initial] [rendered]\r\nchunk {39} main-es5.d68e6e1b9429135d5faf.js (main) 1.19 MB [initial] [rendered]\r\n--\r\nchunk {42} styles.38056460a1b2b723be01.css (styles) 397 kB [initial] [rendered]\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\nngular CLI: 9.0.0\r\nNode: 13.3.0\r\nOS: darwin x64\r\n\r\nAngular: 9.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, language-service, material, platform-browser\r\n... platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0\r\n@angular-devkit/build-angular 0.900.0\r\n@angular-devkit/build-optimizer 0.900.0\r\n@angular-devkit/build-webpack 0.900.0\r\n@angular-devkit/core 9.0.0\r\n@angular-devkit/schematics 9.0.0\r\n@angular/flex-layout 9.0.0-beta.28\r\n@ngtools/webpack 9.0.0\r\n@schematics/angular 9.0.0\r\n@schematics/update 0.900.0\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.5\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\nSimilar issues: https://github.com/angular/angular-cli/issues/16989\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/bri1990","@type":"Person","name":"bri1990"},"datePublished":"2020-02-07T08:47:20Z","url":"https://github.com/angular/components/issues/19610"}
| 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:37f82c60-5bb2-8d9b-9b5f-a8b567969fb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8614:296654:1022A3D:1599AB9:6B011328 |
| html-safe-nonce | d5d76891c6b7b59c77efab4d1b76bbb6620a479c247f6ec3dde852862940d860 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjE0OjI5NjY1NDoxMDIyQTNEOjE1OTlBQjk6NkIwMTEzMjgiLCJ2aXNpdG9yX2lkIjoiNTQ4MzIyMDIyNTU4MTE5MTk3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cc8dd128d398589896c18ea746bc20a5feab85f84fd866be7e5bf677927e9076 |
| hovercard-subject-tag | issue:637120766 |
| 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/components/19610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34fc8da2d66d77811e8459851d51a46fe0d2eb6e700dbf610a6ac5ab5d759e1b/angular/components/issues/19610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34fc8da2d66d77811e8459851d51a46fe0d2eb6e700dbf610a6ac5ab5d759e1b/angular/components/issues/19610 |
| og:image:alt | 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? yes, Description Our initial bundle increased after t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bri1990 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/components git https://github.com/angular/components.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49016322 |
| octolytics-dimension-repository_nwo | angular/components |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49016322 |
| octolytics-dimension-repository_network_root_nwo | angular/components |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width