Skip to content

feat(bun): warn when externalizing instrumented deps#21999

Merged
isaacs merged 1 commit into
developfrom
isaacs/detect-bun-plugin-externals
Jul 7, 2026
Merged

feat(bun): warn when externalizing instrumented deps#21999
isaacs merged 1 commit into
developfrom
isaacs/detect-bun-plugin-externals

Conversation

@isaacs

@isaacs isaacs commented Jul 6, 2026

Copy link
Copy Markdown
Member

There's no way to prevent bun from externalizing the dependencies that we instrument with orchestrion when external: '*' or packages: 'external' is used in the bun build config.

Detect this situation, and warn the user about it.

fix: #21908
fix: JS-2894

There's no way to prevent bun from externalizing the dependencies that
we instrument with orchestrion when `external: '*'` or `packages:
'external'` is used in the bun build config.

Detect this situation, and warn the user about it.

fix: #21908
fix: JS-2894
@isaacs isaacs requested a review from a team as a code owner July 6, 2026 18:13
@isaacs isaacs requested review from JPeer264, andreiborza and mydea and removed request for a team July 6, 2026 18:13
@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

JS-2894

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ddb45cd. Configure here.

Comment thread packages/bun/src/plugin.ts
@isaacs isaacs merged commit 4aa495f into develop Jul 7, 2026
65 checks passed
@isaacs isaacs deleted the isaacs/detect-bun-plugin-externals branch July 7, 2026 17:06
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.

bun: detect and warn when orchestrion instrumented modules will be excluded from the build bundle

2 participants