-
-
Notifications
You must be signed in to change notification settings - Fork 779
Description
System Info
System:
OS: macOS 26.1
CPU: (12) arm64 Apple M3 Pro
Memory: 478.22 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - /Users/ohjoong.kwon/.proto/tools/node/20.15.1/bin/node
Yarn: 4.5.1 - /Users/ohjoong.kwon/.proto/shims/yarn
npm: 10.7.0 - /Users/ohjoong.kwon/.proto/tools/node/20.15.1/bin/npm
pnpm: 10.4.0 - /Users/ohjoong.kwon/.proto/shims/pnpm
Browsers:
Chrome: 142.0.7444.135
Safari: 26.1
Details
I am aware I'm reporting to rspack repo, not the plugin
Interestingly, rsbuild-plugin-image-compress start to fail compressing images after upgrading rspack to v1.6.
I was originally suspecting plugin or @napi-rs/image behavior, but was able to reproduce using a single version of plugin and different version of rspack.
In rspack 1.6, valid assets are failing to compress with messages like
ERROR in × "d37f2fa28b53c09c.jpg" in "/path/to/repro" from Image Minimizer:
│ Compress JPEG failed Any { .. }
ERROR in × "211c9e79656758be.png" in "/path/to/repro" from Image Minimizer:
│ Optimize failed Invalid header detected; Not a PNG file
Rspack 1.6.2 compiled with 2 errors in 42 ms
Check gh actions log
https://github.com/kwonoj/mf-asset-collision-test/actions/runs/19313781658/job/55240352010
Reproduce link
https://github.com/kwonoj/mf-asset-collision-test
Reproduce Steps
- npm install
- npm run build:1.6