perf(build): 优化开发预热与首屏分包懒加载
减少应用启动时的静态依赖,增加首屏体积预算与懒加载边界校验。验证通过:875 项单测、UI 依赖审计、ESLint、Prettier、生产构建与首屏产物校验;Chrome 模拟回归通过。
This commit is contained in:
@@ -11,17 +11,15 @@ import React, {
|
||||
} from 'react';
|
||||
import { useIsMobile } from '../../hooks/common/useIsMobile';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers/api';
|
||||
import { isAuthPagePath } from '../../helpers/auth';
|
||||
import {
|
||||
API,
|
||||
clearUserData,
|
||||
getUserData,
|
||||
getLogo,
|
||||
getSystemName,
|
||||
isAuthPagePath,
|
||||
showError,
|
||||
setStatusData,
|
||||
setUserData,
|
||||
} from '../../helpers';
|
||||
} from '../../helpers/data';
|
||||
import { getLogo, getSystemName, showError } from '../../helpers/utils';
|
||||
import { UserContext } from '../../context/User';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
Reference in New Issue
Block a user