Title: Increased main.js bundle size but less lazy chunks, another case with Angular v9-rc.11 in a monorepo structure · Issue #16799 · angular/angular-cli · GitHub
Open Graph Title: Increased main.js bundle size but less lazy chunks, another case with Angular v9-rc.11 in a monorepo structure · Issue #16799 · angular/angular-cli
X Title: Increased main.js bundle size but less lazy chunks, another case with Angular v9-rc.11 in a monorepo structure · Issue #16799 · angular/angular-cli
Description: 🐞 Bug report Command (mark with an x) new serve build test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, with Angular v8, or Ivy disabled, the main bundle size issue did not happen Description ...
Open Graph Description: 🐞 Bug report Command (mark with an x) new serve build test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, with Angular v8, or Ivy disabled, the main bundl...
X Description: 🐞 Bug report Command (mark with an x) new serve build test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, with Angular v8, or Ivy disabled, the main bundl...
Opengraph URL: https://github.com/angular/angular-cli/issues/16799
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Increased main.js bundle size but less lazy chunks, another case with Angular v9-rc.11 in a monorepo structure","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- [ ] serve\r\n- [x] build\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\nYes, with Angular v8, or Ivy disabled, the main bundle size issue did not happen\r\n\r\n\r\n### Description\r\n\r\nLike in issue https://github.com/angular/angular-cli/issues/16146, Ivy enabled builds result in bigger main bundles.\r\n\r\nWe use an app-shell plus lazy load of components- with Angular Elements like in aio, and routes. With View Engine (VE), both in Angular 8 and 9, the main bundle effectively only included what was required to render the shell:\r\n\r\n* Core framework,\r\n* Auth back-end,\r\n* Angular Material sidenav and toolbar,\r\n* Shell components.\r\n\r\nOnce Ivy is enabled, it includes additional code. E.g., in one application, we get those two source-map-explorer results:\r\n\r\n\r\n\r\n\r\nIn other app, the result is also bigger main bundles. In particular, it adds all the `@Injectable({providedIn: 'root})` services that are provided in a data-access internal library:\r\n\r\n\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\n\r\nPlease include: commands run (including args), packages added, related code changes.\r\n\r\nIf reproduction steps are not enough for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue. \r\nA good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem. \r\nShare the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behaviour.\r\n\r\nIssues that don't have enough info and can't be reproduced will be closed.\r\n\r\nYou can read more about issue submission guidelines here: https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submitting-an-issue\r\n-->\r\nThe issue is in a proprietary mono-repo of front-ends. We can provide access in Bitbucket or Github private repositories if necessary. To generate the bundles, we used\r\n\r\n```\r\nng build \u003cproject-name> --prod --source-map --localize=false\r\n```\r\n\r\nAnd only changed the tsconfig.json to set `angularCompilerOptions.enableIvy = false`\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\n\u003c!-- run `ng version` and paste output below -->\r\n\u003c!-- ✍️-->\r\nAngular CLI: 9.0.0-rc.11\r\nNode: 12.14.1\r\nOS: linux x64\r\n\r\nAngular: 9.0.0-rc.11\r\n... animations, cli, common, compiler, compiler-cli, core\r\n... elements, forms, language-service, localize\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router, service-worker\r\nIvy Workspace: No\r\n\r\nPackage Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.11\r\n@angular-devkit/build-angular 0.900.0-rc.11\r\n@angular-devkit/build-ng-packagr 0.900.0-rc.11\r\n@angular-devkit/build-optimizer 0.900.0-rc.11\r\n@angular-devkit/build-webpack 0.900.0-rc.11\r\n@angular-devkit/core 9.0.0-rc.11\r\n@angular-devkit/schematics 9.0.0-rc.11\r\n@angular/cdk 9.0.0-rc.8\r\n@angular/material 9.0.0-rc.8\r\n@angular/pwa 0.803.23\r\n@ngtools/webpack 9.0.0-rc.11\r\n@schematics/angular 8.3.23\r\n@schematics/update 0.900.0-rc.11\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.2\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n","author":{"url":"https://github.com/dogmatico","@type":"Person","name":"dogmatico"},"datePublished":"2020-01-30T10:13:28Z","url":"https://github.com/angular/angular-cli/issues/16799"}
| 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:ba8ec653-3dff-f482-7957-42a7d7565ea4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF46:2E7EBB:1183E14:162E92E:6B01164E |
| html-safe-nonce | d155ee6a04e2b5bf73d4f8be26c0dbde719fd52807898d464cff383bd1724da0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjQ2OjJFN0VCQjoxMTgzRTE0OjE2MkU5MkU6NkIwMTE2NEUiLCJ2aXNpdG9yX2lkIjoiNTEzODM0MDY5MTA4NDEyMTY3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e11d836c1e2726cfd4ad9fc09c3cfd3a8f9124c54556c703453820b35fad4cb |
| hovercard-subject-tag | issue:557391522 |
| 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/16799/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03bde32ac8c039fefe3a8c900c2fe9f2c51d196a8bd2c6691dc6ba6c404c43e5/angular/angular-cli/issues/16799 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03bde32ac8c039fefe3a8c900c2fe9f2c51d196a8bd2c6691dc6ba6c404c43e5/angular/angular-cli/issues/16799 |
| og:image:alt | 🐞 Bug report Command (mark with an x) new serve build test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, with Angular v8, or Ivy disabled, the main bundl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dogmatico |
| 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