mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
// This file is the browser's entry point for the JS bundle
|
|
|
|
import { mount, unmount } from "svelte";
|
|
import App from "/src/App.svelte";
|
|
|
|
document.body.setAttribute("data-app-container", "");
|
|
|
|
const app = mount(App, { target: document.body });
|
|
|
|
// Ensure the old component tree is properly torn down during HMR so all onDestroy hooks fire (which clean up IO managers, state providers, etc.)
|
|
import.meta.hot?.dispose(() => unmount(app));
|
|
|
|
export default app;
|