Skip to content

Commit

Permalink
Define auto label option
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkim0814 committed Aug 2, 2024
1 parent 2f553eb commit 15ba145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { createRoot } from "react-dom/client";
import { App } from "./components/App";

// Add this line to enable Emotion auto label
globalThis.EMOTION_RUNTIME_AUTO_LABEL = true;

const container = document.getElementById("app");
if (!container) {
throw new Error("`#app` is not found");
Expand Down
6 changes: 6 additions & 0 deletions src/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare global {
// eslint-disable-next-line no-var
var EMOTION_RUNTIME_AUTO_LABEL: boolean;
}

export {};

0 comments on commit 15ba145

Please sign in to comment.