Files
Graphite/frontend/src/main.ts
Keavon Chambers 9bcac1af2d Remove JS module import prefixes and use absolute paths to the frontend directory (#3924)
* Remove JS module import prefixes

* Fix code review mistakes
2026-03-21 00:08:32 -07:00

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;