Bird
0
0

Why does Angular's bundle size analysis sometimes show duplicate modules in the report?

hard📝 Conceptual Q10 of 15
Angular - Performance Optimization
Why does Angular's bundle size analysis sometimes show duplicate modules in the report?
ABecause the app has no lazy loading
BBecause Angular duplicates all modules by default
CBecause different versions of the same library are included
DBecause CSS files are bundled twice
Step-by-Step Solution
Solution:
  1. Step 1: Understand duplicate modules in bundles

    Duplicates appear when multiple versions of a library are included due to dependencies.
  2. Step 2: Exclude incorrect reasons

    Angular does not duplicate all modules by default; lazy loading affects chunking but not duplicates; CSS files are separate.
  3. Final Answer:

    Because different versions of the same library are included -> Option C
  4. Quick Check:

    Duplicate modules = Multiple library versions [OK]
Quick Trick: Duplicates mean multiple versions of a library exist [OK]
Common Mistakes:
  • Thinking Angular duplicates all modules always
  • Blaming lack of lazy loading for duplicates
  • Confusing CSS duplication with JS modules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes