Which tool is essential for enabling tree shaking in a modern JavaScript project?
- Webpack
- Babel
- ESLint
- npm
Tree shaking is a process in Webpack that eliminates unused code, reducing the bundle size. By configuring Webpack properly, you can enable tree shaking and optimize your project for better performance.
Loading...
Related Quiz
- Functions that perform HTTP requests are not considered pure because they _________.
- Arrow functions should not be used as ________ because they cannot be used with the new operator.
- When importing a named export, what syntax must you use?
- How does the behavior of 'this' in arrow functions affect their usage as methods in an object?
- What is a key difference between a JavaScript Object and a Map?