From 637eda5ac167b968d583efb4d36aba491cc22b16 Mon Sep 17 00:00:00 2001 From: thislight Date: Wed, 13 Nov 2024 19:30:16 +0800 Subject: [PATCH] fix top-level await not supported in targets --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 5441516..715d5aa 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,10 +1,10 @@ import { render } from "solid-js/web"; import App from "./App.js"; import "solid-devtools"; +import { attachDevtoolsOverlay } from "@solid-devtools/overlay"; render(() => , document.getElementById("root")!); if (import.meta.env.VITE_DEVTOOLS_OVERLAY === "true") { - const overlay = await import("@solid-devtools/overlay") - overlay.attachDevtoolsOverlay() + attachDevtoolsOverlay(); }