mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 02:47:03 -04:00
Path aliases, better lazyWebpack (#268)
This commit is contained in:
parent
7a4402f142
commit
bad96b7887
138 changed files with 572 additions and 547 deletions
|
@ -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: {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue