kyr0 / brotli-compress

WASM based, asynchronous Brotli compression and decompression package that works in browsers and Node.js; CommonJS and ESM
Apache License 2.0
18 stars 1 forks source link

[Feature request] Create separate wasm file #4

Open thdoan opened 7 months ago

thdoan commented 7 months ago

I like how with brotli-wasm when I build with vite it separates brotli into a separate 1.3mb binary wasm file:

image

Can you add an option to do the same? Currently when I build with brotli-compress it generates a 1.8mb js file which throws a "module too large" warning every time I build. It would also make more organizational sense to have the wasm portion in a wasm file IMHO.