优化前端首屏 tsx 冷加载

This commit is contained in:
2026-04-26 16:05:37 +08:00
parent 45898cba4e
commit d56031cf4a
14 changed files with 334 additions and 252 deletions

View File

@@ -1,6 +1,6 @@
import { lazy, Suspense } from 'react';
import type { BottomTab } from '../../hooks/rpg-session';
import type { BottomTab } from '../../hooks/rpg-session/rpgSessionTypes';
import type {
BattleRewardUi,
CharacterChatUi,
@@ -18,10 +18,8 @@ import type {
import { getNineSliceStyle, TAB_ICONS, UI_CHROME } from '../../uiAssets';
import type { GameCanvasEntitySelection } from '../GameCanvas';
import { PixelIcon } from '../PixelIcon';
import {
PanelLoadingFallback,
type RpgAdventureStatistics,
} from '../rpg-runtime-shell';
import { PanelLoadingFallback } from '../rpg-runtime-shell/rpgRuntimeLoaders';
import type { RpgAdventureStatistics } from '../rpg-runtime-shell/types';
const RpgAdventurePanel = lazy(async () => {
const module = await import('./RpgAdventurePanel');