readBundle

Reads a bundle from a file asynchronously.

Reads a bundle from a file asynchronously.

View source ↗

function readBundle(filepath: string): Promise<Bundle>;

Parameters

Prop

Type

Returns

Promise<Bundle> — Parsed bundle

Examples

const bundle = await readBundle('app.wvb');
const html = bundle.getData('/index.html');

On this page