* introduce pako and add general packer interface

* add tests for packer

* use function API instead of class API for better tree shaking support

* refcatoring the rollup bundle config
This commit is contained in:
yz-yu
2026-04-01 12:00:00 +08:00
committed by GitHub
parent f1adef4693
commit dcad6ff922
23 changed files with 316 additions and 218 deletions

12
src/declarations/pako/index.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
declare module 'pako/dist/pako_deflate' {
export const deflate: any;
}
declare module 'pako/dist/pako_inflate' {
export const inflate: any;
}
declare module 'pako' {
export const deflate: any;
export const inflate: any;
}