@@ -35,46 +35,37 @@ export interface RotateOptions {
3535
3636// MozJPEG
3737import type { MozJPEGModule as MozJPEGEncodeModule } from './mozjpeg/mozjpeg_enc'
38- // @ts -ignore
3938import mozEnc from './mozjpeg/mozjpeg_node_enc.js'
4039const mozEncWasm = new URL ( './mozjpeg/mozjpeg_node_enc.wasm' , getModuleURL ( import . meta. url ) )
41- // @ts -ignore
4240import mozDec from './mozjpeg/mozjpeg_node_dec.js'
4341const mozDecWasm = new URL ( './mozjpeg/mozjpeg_node_dec.wasm' , getModuleURL ( import . meta. url ) )
4442
4543// WebP
4644import type { WebPModule as WebPEncodeModule } from './webp/webp_enc'
47- // @ts -ignore
4845import webpEnc from './webp/webp_node_enc.js'
4946const webpEncWasm = new URL ( './webp/webp_node_enc.wasm' , getModuleURL ( import . meta. url ) )
50- // @ts -ignore
5147import webpDec from './webp/webp_node_dec.js'
5248const webpDecWasm = new URL ( './webp/webp_node_dec.wasm' , getModuleURL ( import . meta. url ) )
5349
5450// AVIF
5551import type { AVIFModule as AVIFEncodeModule } from './avif/avif_enc'
56- // @ts -ignore
5752import avifEnc from './avif/avif_node_enc.js'
5853const avifEncWasm = new URL ( './avif/avif_node_enc.wasm' , getModuleURL ( import . meta. url ) )
59- // @ts -ignore
6054import avifDec from './avif/avif_node_dec.js'
6155const avifDecWasm = new URL ( './avif/avif_node_dec.wasm' , getModuleURL ( import . meta. url ) )
6256
6357// PNG
64- // @ts -ignore
6558import * as pngEncDec from './png/squoosh_png.js'
6659const pngEncDecWasm = new URL ( './png/squoosh_png_bg.wasm' , getModuleURL ( import . meta. url ) )
6760const pngEncDecInit = ( ) =>
6861 pngEncDec . default ( fsp . readFile ( pathify ( pngEncDecWasm . toString ( ) ) ) )
6962
7063// OxiPNG
71- // @ts -ignore
7264import * as oxipng from './png/squoosh_oxipng.js'
7365const oxipngWasm = new URL ( './png/squoosh_oxipng_bg.wasm' , getModuleURL ( import . meta. url ) )
7466const oxipngInit = ( ) => oxipng . default ( fsp . readFile ( pathify ( oxipngWasm . toString ( ) ) ) )
7567
7668// Resize
77- // @ts -ignore
7869import * as resize from './resize/squoosh_resize.js'
7970const resizeWasm = new URL ( './resize/squoosh_resize_bg.wasm' , getModuleURL ( import . meta. url ) )
8071const resizeInit = ( ) => resize . default ( fsp . readFile ( pathify ( resizeWasm . toString ( ) ) ) )
0 commit comments