Skip to content

feat(vscode): bundle extension, update icon, fix vsix packaging#88

Open
teezeit wants to merge 2 commits into
akonan:mainfrom
teezeit:feat/vscode-upstream
Open

feat(vscode): bundle extension, update icon, fix vsix packaging#88
teezeit wants to merge 2 commits into
akonan:mainfrom
teezeit:feat/vscode-upstream

Conversation

@teezeit
Copy link
Copy Markdown
Contributor

@teezeit teezeit commented Apr 19, 2026

Summary

  • Replaces placeholder icon with the wiremd logo (128×128 px, VS Code Marketplace requirement)
  • Bundles both extension.ts and preview-provider.ts with esbuild so the vsix is fully self-contained — no runtime dependency on node_modules
  • Excludes node_modules from vsix via .vscodeignore — drops package from ~180 MB → ~150 KB
  • Removes committed vsix binary from repo; adds *.vsix to .gitignore
  • Adds esbuild to devDependencies

Why bundling preview-provider matters

preview-provider.ts imports wiremd directly. Without bundling it, the compiled JS relied on ../node_modules/wiremd at runtime. After excluding node_modules from the vsix that path no longer exists, breaking styles and JS navigation. Bundling with esbuild inlines wiremd so the extension works correctly after install.

Test plan

  • cd vscode-extension && npm install && npx vsce package produces a clean vsix (~150 KB)
  • code --install-extension wiremd-preview-0.1.0.vsix installs successfully
  • Preview panel renders with correct styles
  • Navbar link clicks navigate between pages

🤖 Generated with Claude Code

teezeit and others added 2 commits April 19, 2026 23:21
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without bundling, preview-provider.js relied on ../node_modules/wiremd
at runtime which broke after ../node_modules was excluded from the vsix.
Bundling inlines wiremd so the extension is fully self-contained.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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