Tree shaking can fail to eliminate unused code if modules are dynamically _______ at runtime.

  • Imported
  • Exported
  • Loaded
  • Unloaded
The correct option is (c) Loaded. Tree shaking may fail if modules are dynamically loaded at runtime. Dynamically loading modules introduces uncertainty about which modules will be used, making it challenging for the module bundler to perform effective tree shaking.
Add your answer
Loading...

Leave a comment

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