aboutsummaryrefslogtreecommitdiff
path: root/src/Vencord.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vencord.ts')
-rw-r--r--src/Vencord.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Vencord.ts b/src/Vencord.ts
index 8ef272b..0f2b25a 100644
--- a/src/Vencord.ts
+++ b/src/Vencord.ts
@@ -1,7 +1,11 @@
export * as Plugins from "./plugins";
export * as Webpack from "./webpack";
export * as Api from "./api";
-export * as Components from "./components";
import "./utils/patchWebpack";
import "./utils/quickCss";
+import { waitFor } from "./webpack";
+
+export let Components;
+
+waitFor("useState", () => setTimeout(() => import("./components").then(mod => Components = mod), 0)); \ No newline at end of file