writeBundleIntoBuffer
Writes a bundle to a buffer synchronously.
Writes a bundle to a buffer synchronously.
function writeBundleIntoBuffer(bundle: Bundle): Buffer;Parameters
Prop
Type
Returns
Buffer — Bundle data as a buffer
Examples
const bundle = builder.build();
const buffer = writeBundleIntoBuffer(bundle);
console.log(`Bundle size: ${buffer.length} bytes`);