Question · Angular course · Module 12: Security and Performance

Bundle Optimization

How do you reduce the bundle size in Angular?

Answer options

  • Import entire libraries instead of individual functions
  • Use lazy loading, tree shaking and import only the functions you need
  • Disable compression
  • Add more polyfills

You can check the correct answer by solving this task in the CodeWorlds game.