tutu/src/index.tsx
thislight 637eda5ac1
All checks were successful
/ depoly (push) Successful in 1m32s
fix top-level await not supported in targets
2024-11-13 19:33:54 +08:00

10 lines
301 B
TypeScript

import { render } from "solid-js/web";
import App from "./App.js";
import "solid-devtools";
import { attachDevtoolsOverlay } from "@solid-devtools/overlay";
render(() => <App />, document.getElementById("root")!);
if (import.meta.env.VITE_DEVTOOLS_OVERLAY === "true") {
attachDevtoolsOverlay();
}