I can't really get why are services, that are marked with providedIn:root and that are used only in lazy-loaded modules aren't tree shaked. We don't have our lazy modules in initial bundle but have services that are used in them, why? And how does angular even include them in the bundle if the module file only being downloaded when loaded with loadChildren?
Tree-shaking in Angular Lazy Modules
58 Views Asked by Iceneo At
0
There are 0 best solutions below
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in DEPENDENCY-INJECTION
- How to add logging to an abstract class in php
- Nest.js can't resolve dependencies of the external library's Reflector dependency
- Do we need IoC containers in typescript if ts-mock-imports exists
- Blazor/Razor resolve components using dependency injection
- Access Registed Scoped Services and Transient Services using GetService()
- using state data class alongside ComposeDestinations
- Messing up with conflict between spring jcl and commons-logging.jar
- How to write pytest tests for a FastAPI route involving dependency injection with Pydantic models using Annotated and Depends?
- .NET Core Include Method in Dependency Injection
- Injecting IHubContext into my background service for SignalR in .NET 5
- Issue with service method call in .NET Background Service , Issue with Scope
- How can I inject the prisma io module using inversify in my node.js project?
- Angular service injection hierarchy
- Trouble with "dotnet run seeddata" when trying to seed a database with EntityFrameworkCore. Specifically with ASP.NET Core 6 Web API
- NX Angular unit tests fail because of NullInjectorError
Related Questions in LAZY-LOADING
- use suspense and lazy loading but with more delay between each
- Video lazy load - background
- Can I use another lazy component as <Suspense /> fallback?
- PrimeNG p-table lazy load does not update without extra 'click'
- Bundle size after migrating to all standalone and implementing lazy loading
- EF Core 8 : getting grand children from grandparent
- Why does adding lazy loading to a React Vite project result in an empty root node?
- window.scrollBy And window.scrollTo is not working in edge..We used lazy loader from bakend for little scroll i used window.scroll
- OneToOne mapping leading to performance impact due to N+1 select issue
- Preload all components when lazy loading standalone components for routing
- React.lazy doesn't improve lighthouse or PageSpeed Insights score. Is it a problem actually?
- Can't get image URLs from lazy-loaded page source
- How to import react-icons module using lazyloading using a variable
- PagespeedInsights shows defer offscreen images even when image is lazy loaded?
- ChunkLoadError: Loading chunk X failed
Related Questions in TREE-SHAKING
- Next.js - Using 3rd-party package imports everything in all bundle
- Webpack removing the method even when I am using it
- Incorrect icon alignment with canvaskit renderer web even after using no icon tree shaking
- Webpack MUI5 Tree-Shaking
- Error: "Cannot find module 'lowdb/node'" in Cypress
- AntD and Vite: is it normal that only a single Button component generates a big bundle?
- Why are my component smaller when accessing it specifically
- How to tree-shake my `tsc` compiled `utils` npm package when importing in a CRA app?
- Does Tailwind CSS tree-shaking work with @apply rules inside *.scss modules?
- Are unused components in an Angular 16 module removed from the bundle (tree shaking)?
- How to Tree shake @carbon/charts-react?
- Exporting Multiple Components From An index.js File in react and its side effects
- Why does webpack import dead javascript code?
- Does "import *" prevent tree-shaking with Firebase?
- React Native IOS release build js tree shaking
Related Questions in ANGULAR-PROVIDERS
- Why can't I provide config at (standalone) component level?
- Override provider from peer module in Angular
- NG05100:Providers from`BrowserModule` have already been loaded.If you need access to common directives such as NgIf import the `CommonModule` instead
- Angular 17 - SSR Standalone - Routing FactoryProvider with async - NG04014
- How provide Injection tokens from remote to shell in module federation
- Angular 17 SSR Express Server Providers
- ERROR NullInjectorError: NullInjectorError: No provider for OktaAuthStateService
- Share service instance between multiple components
- How to provide ngmodule level providers to converted standalone components
- isolated angular service instance within an ngModule
- How to set Angular viewProviders with an NgForm in a unit test?
- Overridding a value with Providers array not working with lazy loaded modules / routing
- Using a custom loader in for transloco in route provider
- How to import a provider (plugin) from another module?
- In Angular, is there a way to "provide" a component, similar to a service?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?