In order for tree shaking to work effectively, the module bundler must support _______ analysis.

  • Static
  • Dynamic
  • Runtime
  • Bundle
The correct option is (a) Static. Effective tree shaking relies on static analysis of the code by the module bundler. It involves analyzing the code without executing it, allowing the bundler to determine which parts of the code are unreachable and can be safely eliminated during the bundling process.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *