示例工程 26-svelte5-runes
26-svelte5-runes/app/src/main.ts
import { mount } from "svelte";
import App from "./App.svelte";
import "./styles/globals.css";
const root = document.getElementById("app");
if (!root) throw new Error("missing #app");
const app = mount(App, { target: root });
export default app;