buildUpdate()
构建更新。
参数
参数名 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|
config | YES | HerinaConfig | / | / |
返回值
typescript
Promise<Record<string, ChunkAsset[]>>;
typescript
interface ChunkAsset {
filename: string;
code: string;
path: string;
}
代码示例
typescript
import {build, defineHerinaConfig} from '@herina-rn/core';
const config = defineHerinaConfig({ ... });
build(config);