aboutsummaryrefslogtreecommitdiff
path: root/src/Vencord.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-31 20:47:07 +0200
committerVendicated <vendicated@riseup.net>2022-08-31 20:47:07 +0200
commita7ccbcfca4f181790b86199a7f31d1ae19e0253f (patch)
tree56be6cef5437dff886dcefa04f930780d552c68c /src/Vencord.ts
parent98cb301df53305f397ac6e1b4e603c930820f228 (diff)
downloadVencord-a7ccbcfca4f181790b86199a7f31d1ae19e0253f.tar.gz
Vencord-a7ccbcfca4f181790b86199a7f31d1ae19e0253f.tar.bz2
Vencord-a7ccbcfca4f181790b86199a7f31d1ae19e0253f.zip
Refactor webpack; Add ErrorBoundary
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