/** * React Native 多 Bundle 系统 - npm 包入口 * 导出所有公共 API */ // 核心初始化 export { initMultiBundle, type InitResult } from './multi-bundle/init'; // 配置相关 export { type MultiBundleConfig, type DevServerConfig, type ManifestProvider, type ModuleLoader, mergeConfig, getGlobalConfig, setGlobalConfig, } from './multi-bundle/config'; // 模块加载器 export { createModuleLoader, type CreateModuleLoaderOptions, type ErrorFallbackProps } from './multi-bundle/createModuleLoader'; export { createModuleRouteLoader } from './multi-bundle/createModuleRouteLoader'; // 模块预加载 export { preloadModule } from './multi-bundle/preloadModule'; // ModuleRegistry export { ModuleRegistry, type BundleManifest } from './multi-bundle/ModuleRegistry'; // LocalBundleManager export { LocalBundleManager } from './multi-bundle/LocalBundleManager'; // 路由注册(可选,用于兼容旧代码) export { registerModuleRoute, getModuleRoute } from './multi-bundle/routeRegistry'; // 类型定义 export type { ModuleState, ModuleMeta, } from './multi-bundle/ModuleRegistry';