refactor(build): bundle only the JPEG decoder

Merged
TH
2d ago
+133-14

Summary

Bundle only the jpeg-js decoder in core and Maestro. Maestro now ships third-party notices with JPEG source attribution and Apache 2.0 text.

Value

  • Core screenshot-image JS: 20,666 → 13,781 bytes. Gzip: 8,558 → 5,583 bytes.
  • Maestro screenshot-image JS: 21,396 → 14,516 bytes. Gzip: 8,912 → 5,942 bytes.
  • Maestro's notice adds 19,505 unpacked bytes. The tarball grew by 5,916 bytes versus the decoder-only build without notices.

Validation

  • Packed core and Maestro decoded the fixture to the same pixels as upstream. Final Maestro packaging includes the notices. Independent review and hosted Coverage passed on b3a36cc4.
  • Local validation of b3a36cc4 failed on an unhandled ECONNRESET. The focused test and base unit run passed. The cause remains unproven.
  • On 954892305a, all 16 focused tests passed. Disabling the decoder adapter made the new encoder-exclusion assertion fail.
  • On 501142aadf, Fallow and 99 selector tests passed. Exact-head validation and hosted checks are pending.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.