
- Store Emscripten cache inside node_modules/.em_cache. Docker image ships without LTO libs, so Emscripten has to rebuild stdlibs on every build otherwise. - Merge webp_enc + webp_dec build scripts. Core libwebp library is same in both cases, so there's no point in storing and building two copies of it.
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
import { EncodeOptions } from '../../src/codecs/webp/encoder-meta';
|
|
|
|
interface WebPModule extends EmscriptenWasm.Module {
|
|
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array;
|
|
free_result(): void;
|
|
}
|
|
|
|
|
|
export default function(opts: EmscriptenWasm.ModuleOpts): WebPModule;
|