Skip to content

Comments

fix: resolve sharp dependency bundling issue in VSIX#2

Merged
kkdev92 merged 1 commit intomainfrom
fix/sharp-dependency-bundling
Feb 2, 2026
Merged

fix: resolve sharp dependency bundling issue in VSIX#2
kkdev92 merged 1 commit intomainfrom
fix/sharp-dependency-bundling

Conversation

@kkdev92
Copy link
Owner

@kkdev92 kkdev92 commented Feb 2, 2026

Summary

  • Fix sharp module failing to load due to missing detect-libc dependency
  • Add automated VSIX dependency verification to prevent future issues

Changes

Fixed

  • Sharp dependency bundling - use bundleDependencies instead of manual .vscodeignore whitelist
  • Add getSharpLoadError() for better debugging when Sharp fails to load

Added

  • scripts/verify-vsix.mjs - Automated verification of VSIX dependencies
  • CI step to verify VSIX before release
  • npm run verify:vsix script

Changed

  • Simplify .vscodeignore (remove manual node_modules whitelist)
  • Move verbose resize config logging to debug level
  • Simplify Image saved log output

Test Plan

  • All 431 tests passing
  • Lint clean
  • VSIX verification passes
  • Manual test: Sharp loads and resizes images correctly

🤖 Generated with Claude Code

Sharp module was failing to load due to missing transitive dependency
(detect-libc) in VSIX package. The .vscodeignore manual whitelist
approach was error-prone and didn't include all required dependencies.

Key changes:
- Use bundleDependencies in package.json for automatic dependency inclusion
- Add VSIX verification script to detect missing dependencies
- Add CI step to verify VSIX before release
- Improve Sharp load error logging for debugging
- Clean up verbose logging (move debug info to debug level)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kkdev92 kkdev92 merged commit dfab73d into main Feb 2, 2026
1 check passed
@kkdev92 kkdev92 deleted the fix/sharp-dependency-bundling branch February 2, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant