readBundle
Reads a bundle from a file asynchronously.
Reads a bundle from a file asynchronously.
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');