Complete the code to start the Svelte development server.
npm run [1]Running npm run dev starts the Svelte development server with hot module replacement.
Complete the code to import the Svelte component for hot reloading.
import [1] from './App.svelte';
The main Svelte component is usually named App and imported from App.svelte.
Fix the error in the code to enable hot module replacement in Svelte.
const app = new [1]({ target: document.body });The instance must be created from the imported App component to enable HMR.
Fill both blanks to create a Svelte app instance with hot module replacement support.
const app = new [1]({ target: [2] });
The app instance is created from App and attached to document.body for rendering.
Fill all three blanks to set up a Svelte app with hot module replacement and export it.
import [1] from './App.svelte'; const app = new [2]({ target: [3] }); export default app;
Import and instantiate the App component, mount it to document.body, and export the app instance.