Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 7, 2026

Fixes #1231

Changes

  • Set inject: false in Sentry Vite plugin to disable virtual module injection
  • Update Volta to Node 24.11.1 for building fossilized binaries

Why?

The Sentry Vite plugin's _virtual/_sentry-release-injection-file.js creates circular dependency issues in Node 24.x when combined with preserveModules: true. Since Spotlight already sets the release via Sentry.init() at runtime, the build-time injection is redundant.

This fix ensures the plugin still uploads source maps while avoiding the Node 24.x compatibility issue.

@cursor
Copy link

cursor bot commented Jan 7, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@cursor cursor bot mentioned this pull request Jan 7, 2026
@BYK BYK deployed to Preview January 7, 2026 18:10 — with GitHub Actions Active
@vercel
Copy link

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
spotlightjs Ready Ready Preview, Comment Jan 7, 2026 11:33pm

BYK added 2 commits January 7, 2026 23:21
- Add inject: false to Sentry Vite plugin options to prevent virtual module
  injection that causes circular dependency issues with preserveModules
- Remove conditional shouldUseSentryPlugin() - plugin now always runs safely
- Update Volta to Node 24.11.1 for building fossilized binaries
- Delete obsolete changeset file

The release is already set via Sentry.init() at runtime, making build-time
injection redundant. This fix works for all users regardless of environment.

Fixes #1231
@BYK BYK deployed to Preview January 7, 2026 23:32 — with GitHub Actions Active
@BYK BYK marked this pull request as ready for review January 7, 2026 23:37
@BYK BYK enabled auto-merge (squash) January 7, 2026 23:38
@BYK BYK merged commit a2cfbe4 into main Jan 7, 2026
20 checks passed
@BYK BYK deleted the cursor/node-24-x-support-716b branch January 7, 2026 23:38
@github-actions github-actions bot mentioned this pull request Jan 8, 2026
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.

Does not support node 24.x

3 participants