Skip to content

Commit 15ba145

Browse files
committed
Define auto label option
1 parent 2f553eb commit 15ba145

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/client/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { createRoot } from "react-dom/client";
22
import { App } from "./components/App";
33

4+
// Add this line to enable Emotion auto label
5+
globalThis.EMOTION_RUNTIME_AUTO_LABEL = true;
6+
47
const container = document.getElementById("app");
58
if (!container) {
69
throw new Error("`#app` is not found");

src/types/global.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare global {
2+
// eslint-disable-next-line no-var
3+
var EMOTION_RUNTIME_AUTO_LABEL: boolean;
4+
}
5+
6+
export {};

0 commit comments

Comments
 (0)