Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does tree shaking do in a modern build tool?

  1. A Reorders the DOM tree
  2. B Removes unused exports from the final bundle
  3. C Compresses images
  4. D Sorts CSS rules
Answer

Removes unused exports from the final bundle

Tree shaking relies on the static structure of ES module imports and exports, which is why CommonJS modules are harder to shake.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as