Skip to content
On this page

build()

Builds chunks for the full update.

If the version.json was built before, this function will also write the latest version info to it.

Arguments

NameRequiredTypeDefault ValueNote
configYESHerinaConfig//

Returns

typescript
Promise<Record<string, ChunkAsset[]>>
typescript
interface ChunkAsset {
  filename: string;
  code: string;
  path: string;
}

Example

typescript
import {build, defineHerinaConfig} from '@herina-rn/core';

const config = defineHerinaConfig({ ... });

build(config);

Released under the MIT License.