aboutsummaryrefslogtreecommitdiff
path: root/src/utils/misc.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r--src/utils/misc.tsx14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx
index 7389cc2..4ae3fd5 100644
--- a/src/utils/misc.tsx
+++ b/src/utils/misc.tsx
@@ -16,9 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { FilterFn, find } from "../webpack";
-import { React } from "../webpack/common";
-import { proxyLazy } from "./proxyLazy";
+import { React } from "@webpack/common";
/**
* Makes a lazy function. On first call, the value is computed.
@@ -29,16 +27,6 @@ export function makeLazy<T>(factory: () => T): () => T {
let cache: T;
return () => cache ?? (cache = factory());
}
-export const lazy = makeLazy;
-
-/**
- * Do a lazy webpack search. Searches the module on first property access
- * @param filter Filter function
- * @returns A proxy to the webpack module. Not all traps are implemented, may produce unexpected results.
- */
-export function lazyWebpack<T = any>(filter: FilterFn): T {
- return proxyLazy(() => find(filter));
-}
type AwaiterRes<T> = [T, any, boolean, () => void];
/**