Overview - Development server and HMR
What is it?
A development server is a tool that runs your Svelte app locally so you can see changes instantly as you build. HMR, or Hot Module Replacement, is a feature that updates parts of your app in the browser without needing a full page reload. Together, they make coding faster and smoother by showing your changes live. This helps you fix mistakes and try ideas quickly.
Why it matters
Without a development server and HMR, every change you make would require you to manually refresh the browser and wait for the whole app to reload. This slows down your work and breaks your flow. With these tools, you get immediate feedback, which feels like magic and saves lots of time. It makes learning and building apps more fun and less frustrating.
Where it fits
Before learning this, you should know basic Svelte app structure and how to write components. After this, you can explore advanced build tools, deployment, and optimizing app performance. This topic sits between writing code and seeing it live, bridging development and user experience.