From a7ccbcfca4f181790b86199a7f31d1ae19e0253f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 31 Aug 2022 20:47:07 +0200 Subject: Refactor webpack; Add ErrorBoundary --- src/Vencord.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Vencord.ts') 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 -- cgit