@@ -35,46 +35,37 @@ export interface RotateOptions {
35
35
36
36
// MozJPEG
37
37
import type { MozJPEGModule as MozJPEGEncodeModule } from './mozjpeg/mozjpeg_enc'
38
- // @ts -ignore
39
38
import mozEnc from './mozjpeg/mozjpeg_node_enc.js'
40
39
const mozEncWasm = new URL ( './mozjpeg/mozjpeg_node_enc.wasm' , getModuleURL ( import . meta. url ) )
41
- // @ts -ignore
42
40
import mozDec from './mozjpeg/mozjpeg_node_dec.js'
43
41
const mozDecWasm = new URL ( './mozjpeg/mozjpeg_node_dec.wasm' , getModuleURL ( import . meta. url ) )
44
42
45
43
// WebP
46
44
import type { WebPModule as WebPEncodeModule } from './webp/webp_enc'
47
- // @ts -ignore
48
45
import webpEnc from './webp/webp_node_enc.js'
49
46
const webpEncWasm = new URL ( './webp/webp_node_enc.wasm' , getModuleURL ( import . meta. url ) )
50
- // @ts -ignore
51
47
import webpDec from './webp/webp_node_dec.js'
52
48
const webpDecWasm = new URL ( './webp/webp_node_dec.wasm' , getModuleURL ( import . meta. url ) )
53
49
54
50
// AVIF
55
51
import type { AVIFModule as AVIFEncodeModule } from './avif/avif_enc'
56
- // @ts -ignore
57
52
import avifEnc from './avif/avif_node_enc.js'
58
53
const avifEncWasm = new URL ( './avif/avif_node_enc.wasm' , getModuleURL ( import . meta. url ) )
59
- // @ts -ignore
60
54
import avifDec from './avif/avif_node_dec.js'
61
55
const avifDecWasm = new URL ( './avif/avif_node_dec.wasm' , getModuleURL ( import . meta. url ) )
62
56
63
57
// PNG
64
- // @ts -ignore
65
58
import * as pngEncDec from './png/squoosh_png.js'
66
59
const pngEncDecWasm = new URL ( './png/squoosh_png_bg.wasm' , getModuleURL ( import . meta. url ) )
67
60
const pngEncDecInit = ( ) =>
68
61
pngEncDec . default ( fsp . readFile ( pathify ( pngEncDecWasm . toString ( ) ) ) )
69
62
70
63
// OxiPNG
71
- // @ts -ignore
72
64
import * as oxipng from './png/squoosh_oxipng.js'
73
65
const oxipngWasm = new URL ( './png/squoosh_oxipng_bg.wasm' , getModuleURL ( import . meta. url ) )
74
66
const oxipngInit = ( ) => oxipng . default ( fsp . readFile ( pathify ( oxipngWasm . toString ( ) ) ) )
75
67
76
68
// Resize
77
- // @ts -ignore
78
69
import * as resize from './resize/squoosh_resize.js'
79
70
const resizeWasm = new URL ( './resize/squoosh_resize_bg.wasm' , getModuleURL ( import . meta. url ) )
80
71
const resizeInit = ( ) => resize . default ( fsp . readFile ( pathify ( resizeWasm . toString ( ) ) ) )
0 commit comments