From bad96b78879f296d5b9e7adacb03756b0f58427a Mon Sep 17 00:00:00 2001 From: Ven Date: Mon, 28 Nov 2022 13:37:55 +0100 Subject: Path aliases, better lazyWebpack (#268) --- src/plugins/spotifyControls/PlayerComponent.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/plugins/spotifyControls/PlayerComponent.tsx') diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index 6396e02..24394c6 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -16,13 +16,14 @@ * along with this program. If not, see . */ -import ErrorBoundary from "../../components/ErrorBoundary"; -import { Flex } from "../../components/Flex"; -import { Link } from "../../components/Link"; -import { debounce } from "../../utils/debounce"; -import { classes, LazyComponent, lazyWebpack } from "../../utils/misc"; -import { ContextMenu, FluxDispatcher, Forms, Menu, React } from "../../webpack/common"; -import { filters, find } from "../../webpack/webpack"; +import ErrorBoundary from "@components/ErrorBoundary"; +import { Flex } from "@components/Flex"; +import { Link } from "@components/Link"; +import { debounce } from "@utils/debounce"; +import { classes, LazyComponent } from "@utils/misc"; +import { filters, find, findByCodeLazy } from "@webpack"; +import { ContextMenu, FluxDispatcher, Forms, Menu, React } from "@webpack/common"; + import { SpotifyStore, Track } from "./SpotifyStore"; const cl = (className: string) => `vc-spotify-${className}`; @@ -40,7 +41,7 @@ const useStateFromStores: ( idk?: null, compare?: (old: T, newer: T) => boolean ) => T - = lazyWebpack(filters.byCode("useStateFromStores")); + = findByCodeLazy("useStateFromStores"); function Svg(path: string, label: string) { return () => ( -- cgit