aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/startupTimings
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/startupTimings')
-rw-r--r--src/plugins/startupTimings/StartupTimingPage.tsx11
-rw-r--r--src/plugins/startupTimings/index.tsx6
2 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/startupTimings/StartupTimingPage.tsx b/src/plugins/startupTimings/StartupTimingPage.tsx
index f0c14ed..c8cf51d 100644
--- a/src/plugins/startupTimings/StartupTimingPage.tsx
+++ b/src/plugins/startupTimings/StartupTimingPage.tsx
@@ -16,11 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import ErrorBoundary from "../../components/ErrorBoundary";
-import { Flex } from "../../components/Flex";
-import { lazyWebpack } from "../../utils/misc";
-import { Forms, React } from "../../webpack/common";
-import { filters } from "../../webpack/webpack";
+import ErrorBoundary from "@components/ErrorBoundary";
+import { Flex } from "@components/Flex";
+import { findByPropsLazy } from "@webpack";
+import { Forms, React } from "@webpack/common";
interface AppStartPerformance {
prefix: string;
@@ -46,7 +45,7 @@ interface Log {
delta?: number;
}
-const AppStartPerformance = lazyWebpack(filters.byProps("markWithDelta", "markAndLog", "markAt")) as AppStartPerformance;
+const AppStartPerformance = findByPropsLazy("markWithDelta", "markAndLog", "markAt") as AppStartPerformance;
interface TimerItemProps extends Log {
instance: {
diff --git a/src/plugins/startupTimings/index.tsx b/src/plugins/startupTimings/index.tsx
index d5493c1..1dd7139 100644
--- a/src/plugins/startupTimings/index.tsx
+++ b/src/plugins/startupTimings/index.tsx
@@ -17,9 +17,9 @@
*/
-import { Devs } from "../../utils/constants";
-import { LazyComponent } from "../../utils/misc";
-import definePlugin from "../../utils/types";
+import { Devs } from "@utils/constants";
+import { LazyComponent } from "@utils/misc";
+import definePlugin from "@utils/types";
export default definePlugin({
name: "StartupTimings",