We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f553eb commit 15ba145Copy full SHA for 15ba145
src/client/index.tsx
@@ -1,6 +1,9 @@
1
import { createRoot } from "react-dom/client";
2
import { App } from "./components/App";
3
4
+// Add this line to enable Emotion auto label
5
+globalThis.EMOTION_RUNTIME_AUTO_LABEL = true;
6
+
7
const container = document.getElementById("app");
8
if (!container) {
9
throw new Error("`#app` is not found");
src/types/global.d.ts
@@ -0,0 +1,6 @@
+declare global {
+ // eslint-disable-next-line no-var
+ var EMOTION_RUNTIME_AUTO_LABEL: boolean;
+}
+export {};
0 commit comments