feat: add react scan debugging

This commit is contained in:
Dan Ditomaso
2025-02-26 14:24:56 -05:00
parent fe2360baf6
commit 4a6eb0d3f8
4 changed files with 109 additions and 0 deletions
+7
View File
@@ -1,3 +1,4 @@
import { scan } from "react-scan";
import "@app/index.css";
import { enableMapSet } from "immer";
import "maplibre-gl/dist/maplibre-gl.css";
@@ -6,6 +7,12 @@ import { createRoot } from "react-dom/client";
import { App } from "@app/App.tsx";
// run react scan tool in development mode only
import.meta.env.VITE_DEBUG &&
scan({
enabled: true,
});
const container = document.getElementById("root") as HTMLElement;
const root = createRoot(container);