fix: no more corrupted font in generated zip#8
Conversation
…a breaking change: src() now defaults to encoding: 'utf8'. We now disable the codec entirely.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
vinyl-fs v4 introduced a breaking change: src() now defaults to encoding: 'utf8'. We now disable the codec entirely.
The woff2 file in the zip was bigger than the original one. This lead to console warnings in browser.
Now, font file size is preserved.
Note
Low Risk
Small, localized build pipeline change that only affects how the release zip is packaged; minimal runtime impact outside packaging.
Overview
Fixes binary asset corruption in the
zipbuild by passing{encoding: false}togulp.src()insidezipper(), ensuring files are streamed as raw buffers when generating thedist/*.zip.Reviewed by Cursor Bugbot for commit 96d4658. Bugbot is set up for automated code reviews on this repo. Configure here.