Skip to content

Function: applySuffix() ​

applySuffix(output, suffix): Map<string, Uint8Array<ArrayBufferLike>>

Defined in: src/index.ts:112

Rename generated .ssab files by appending suffix to each basename and drop every non-.ssab output. Lets a host emit an embedded variant next to the normal external outputs (e.g. foo.ssab + foo_embedded.ssab) without name clashes.

Parameters ​

output ​

Map<string, Uint8Array<ArrayBufferLike>>

suffix ​

string

Returns ​

Map<string, Uint8Array<ArrayBufferLike>>