René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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![Captura de pantalla de 2020-01-30 09-41-47](https://user-images.githubusercontent.com/14163866/73437456-a8652d80-434c-11ea-943c-06cd59a25c8c.png)\r\n![Captura de pantalla de 2020-01-30 09-41-49](https://user-images.githubusercontent.com/14163866/73437458-a8652d80-434c-11ea-8358-60b6b9e166c9.png)\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![Captura de pantalla de 2020-01-30 10-45-15](https://user-images.githubusercontent.com/14163866/73440039-e8c6aa80-4350-11ea-9ea3-cf3afea9f727.png)\r\n![Captura de pantalla de 2020-01-30 10-51-58](https://user-images.githubusercontent.com/14163866/73440040-e8c6aa80-4350-11ea-9fba-40b51d545b4e.png)\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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ba8ec653-3dff-f482-7957-42a7d7565ea4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF46:2E7EBB:1183E14:162E92E:6B01164E
html-safe-nonced155ee6a04e2b5bf73d4f8be26c0dbde719fd52807898d464cff383bd1724da0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjQ2OjJFN0VCQjoxMTgzRTE0OjE2MkU5MkU6NkIwMTE2NEUiLCJ2aXNpdG9yX2lkIjoiNTEzODM0MDY5MTA4NDEyMTY3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1e11d836c1e2726cfd4ad9fc09c3cfd3a8f9124c54556c703453820b35fad4cb
hovercard-subject-tagissue:557391522
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/16799/issue_layout
twitter:imagehttps://opengraph.githubassets.com/03bde32ac8c039fefe3a8c900c2fe9f2c51d196a8bd2c6691dc6ba6c404c43e5/angular/angular-cli/issues/16799
twitter:cardsummary_large_image
og:imagehttps://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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedogmatico
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/16799#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F16799
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F16799
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/16799
Reloadhttps://github.com/angular/angular-cli/issues/16799
Reloadhttps://github.com/angular/angular-cli/issues/16799
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/16799
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/16799
Increased main.js bundle size but less lazy chunks, another case with Angular v9-rc.11 in a monorepo structurehttps://github.com/angular/angular-cli/issues/16799#top
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
https://github.com/dogmatico
dogmaticohttps://github.com/dogmatico
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#issue-557391522
#16146https://github.com/angular/angular-cli/issues/16146
https://user-images.githubusercontent.com/14163866/73437456-a8652d80-434c-11ea-943c-06cd59a25c8c.png
https://user-images.githubusercontent.com/14163866/73437458-a8652d80-434c-11ea-8358-60b6b9e166c9.png
https://user-images.githubusercontent.com/14163866/73440039-e8c6aa80-4350-11ea-9ea3-cf3afea9f727.png
https://user-images.githubusercontent.com/14163866/73440040-e8c6aa80-4350-11ea-9fba-40b51d545b4e.png
Nexthttps://github.com/angular/angular-cli/issues/16799?timeline_page=1
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-580337281
IgorMinarhttps://github.com/IgorMinar
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994040850
ngbothttps://github.com/apps/ngbot
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994040964
IgorMinarhttps://github.com/IgorMinar
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994042955
ngbothttps://github.com/apps/ngbot
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994043041
filipesilvahttps://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994051448
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994051532
filipesilvahttps://github.com/filipesilva
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994051693
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
Backloghttps://github.com/angular/angular-cli/milestone/12
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994051772
filipesilvahttps://github.com/filipesilva
Backloghttps://github.com/angular/angular-cli/milestone/12
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
on Jan 30, 2020https://github.com/angular/angular-cli/issues/16799#event-2994052134
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 31, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-580809469
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 31, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-580822436
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 31, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-580912090
#16799https://github.com/angular/angular-cli/issues/16799
https://github.com/dogmatico
dogmaticohttps://github.com/dogmatico
on Feb 1, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-581008614
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Feb 1, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-581028943
https://github.com/dogmatico
dogmaticohttps://github.com/dogmatico
on Feb 3, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-581284513
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Feb 3, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-581324624
https://github.com/dogmatico
dogmaticohttps://github.com/dogmatico
on Feb 3, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-581340887
https://next.angular.io/guide/ivyhttps://next.angular.io/guide/ivy
https://github.com/DmitryEfimenko
DmitryEfimenkohttps://github.com/DmitryEfimenko
on Feb 5, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-582248652
https://github.com/dogmatico
dogmaticohttps://github.com/dogmatico
on Feb 5, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-582295818
https://github.com/clydin
clydinhttps://github.com/clydin
on Feb 5, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-582371828
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Feb 6, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-583043056
angular/angular#35178https://github.com/angular/angular/pull/35178
https://next.angular.io/guide/ivy-compatibility#payload-size-debugginghttps://next.angular.io/guide/ivy-compatibility#payload-size-debugging
https://angular.io/guide/ivy-compatibility#payload-size-debugginghttps://angular.io/guide/ivy-compatibility#payload-size-debugging
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 6, 2020https://github.com/angular/angular-cli/issues/16799#event-3014983570
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 8, 2020https://github.com/angular/angular-cli/issues/16799#issuecomment-596177805
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 8, 2020https://github.com/angular/angular-cli/issues/16799#event-3108247439
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/16799
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/16799
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
v9-candidateshttps://github.com/angular/angular-cli/milestone/20
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.