Skip to content

Commit b59dc36

Browse files
author
baiwusanyu-c
committed
fix: rspackImgCompress typo error
1 parent b2c1beb commit b59dc36

File tree

1 file changed

+1
-1
lines changed
  • packages/unplugin-img-compress/src/runtime

1 file changed

+1
-1
lines changed

packages/unplugin-img-compress/src/runtime/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function webRspackHandler(
1313
) {
1414
compiler.hooks.emit.tapAsync('unplugin-img-compress', (
1515
compilation: RspackCompilation | WebpackCompilation,
16-
callback) => {
16+
callback: any) => {
1717
ctx.dir = (compilation.outputOptions.path || './dist').replaceAll('\\', '/')
1818
for (const filename in compilation.assets) {
1919
if (/\.(png|jpg|jpeg|gif|svg)$/.test(filename)) {

0 commit comments

Comments
 (0)