Skip to content

Fix loading copilot-sdk 0.2#304310

Merged
roblourens merged 3 commits intomainfrom
roblou/bottom-baboon
Mar 24, 2026
Merged

Fix loading copilot-sdk 0.2#304310
roblourens merged 3 commits intomainfrom
roblou/bottom-baboon

Conversation

@roblourens
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 23:43
@roblourens roblourens enabled auto-merge (squash) March 23, 2026 23:43
@roblourens roblourens self-assigned this Mar 23, 2026
@vs-code-engineering
Copy link
Contributor

vs-code-engineering bot commented Mar 23, 2026

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/bootstrap-import.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates VS Code’s dev-only node_modules redirector loader (src/bootstrap-import.ts) to correctly derive a dependency’s entrypoint when package.json uses conditional export objects (notably needed to load @github/copilot-sdk 0.2).

Changes:

  • Enhance exports['.'] handling to support import/default values that may be condition objects (e.g. { types, default }), not just strings.
  • Keep fallback behavior to main / index.js when no export entrypoint can be resolved.

@roblourens roblourens disabled auto-merge March 23, 2026 23:50
roblourens and others added 2 commits March 23, 2026 16:53
Co-authored-by: Copilot <copilot@github.com>
@roblourens roblourens merged commit c19696b into main Mar 24, 2026
17 of 19 checks passed
@roblourens roblourens deleted the roblou/bottom-baboon branch March 24, 2026 00:42
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.

3 participants