Back to Tech Interviews

Vite & Webpack Interview

Curated 20+ questions covering module bundling, Webpack configuration, Vite ESM server, HMR, and build performance.

Total: 20 QuestionsLearned: 0 / 20 (0%)
Difficulty Filters

Tools & Options
Showing 20 of 20 questions
Beginner
What is a module bundler, and why is it needed in web development?
Beginner
What is Webpack, and what are its core concepts?
Beginner
What is Vite, and how is it different from Webpack?
Intermediate
Compare Vite and Webpack production builds.
Intermediate
What is the difference between Loaders and Plugins in Webpack?
Beginner
What is Hot Module Replacement (HMR)?
Intermediate
What is Tree Shaking?
Intermediate
What is Code Splitting, and why should you use it?
Intermediate
How do you achieve dynamic imports (lazy loading) in Webpack/Vite?
Intermediate
What is `esbuild`, and what role does it play in Vite?
Beginner
What are the configuration files used by Webpack and Vite?
Intermediate
What is Cache Busting in bundling?
Beginner
How does Vite handle CSS preprocessors like Sass or Less?
Advanced
Explain Webpack's `output.publicPath` setting.
Beginner
What is a Source Map, and how is it configured?
Advanced
What is Dependency Pre-Bundling in Vite?
Advanced
Explain the concept of Webpack Module Federation.
Scenario
How do you configure proxying in Vite during development?
Scenario
Explain 'out of memory' errors during Webpack production builds and how to solve them.
Beginner
What are static assets, and how does Vite serve them?