🌐JavaScript Bundler
Also known as Bundler, Module Bundler
A tool that joins lots of code files into a few. The browser loads them fast.
Think of it like
Think of it like packing lots of small bags into one big case. One case is easier to carry.
Example
Emma's app has 600 source files. Her bundler turns them into three files, and the page loads in a third of the time.
Why it matters
Browsers are slow to fetch hundreds of small files. A bundler makes big apps load fast.
Definition
Common mistake
Key takeaways
- 1Many in, few out. Hundreds of files become a few.
- 2Follows imports. Puts code in the right order.
- 3Watch the size. Big bundles load slowly.