Repository navigation
fix(cli): set up Vite in the Remix wizard and pass --force through the source maps tools - #2607
Merged
Merged
Conversation
The Remix wizard only pointed Vite projects at the manual source maps steps, because the source maps wizard's Vite setup wasn't in the CLI yet. It is now, so call configureVitePlugin as sentry-wizard does, and show the manual steps only when that fails.
`sentry wizard --force-install` reached the Cloudflare wizard and the Angular source maps setup, but not the source maps wizard: its tool setups installed sentry, the Wrangler CLI and the bundler plugins without the force flag. Add `forceInstall` to the shared tool options, pass it from runSourcemapsWizard and the Remix Vite setup, and use it for the Wrangler and bundler plugin installs. sentry-wizard 9.1.0 never passed it here either.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The Remix wizard's catch around configureVitePlugin turned every error into a warning, including the WizardExitError that abort() and abortIfCancelled throw when the user cancels a prompt or an install fails. Rethrow it so the wizard stops with the intended exit code.
BYK
approved these changes
Nov 30, 2026
BYK
enabled auto-merge
November 30, 2026 20:20
…vite-force-install Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two follow-ups to #2529 that had to wait until #2525 merged, because both touch the shared source maps tools.
Remix uses the Vite tool again
With a
vite.config, the Remix wizard only pointed at the manual source maps steps. The port did that because the source maps wizard's Vite setup wasn't in the CLI yet. It is now, so the Remix wizard callsconfigureVitePluginas sentry-wizard 9.1.0 does, and shows the manual steps only when that fails. Projects without a Vite config keep the build script flow.--forcereaches the source maps tool installssentry wizard --forcesetsforceInstall, and the Cloudflare wizard and the Angular source maps setup already passed it to the package manager. The source maps wizard didn't: its tool setups installed thesentryCLI, including in the Wrangler flow, and the bundler plugins without the force flag.forceInstallis a new optional field on the sharedSourceMapUploadToolConfigurationOptionsintools/types.ts.configureSentryCLIdrops its own copy of the field and uses the shared one.runSourcemapsWizardpasses it into the tool setup.sentryinstall andensureBundlerPluginpass it to the package manager. Vite, webpack, Rollup and esbuild all install their plugin throughensureBundlerPlugin, and both of its installs pass it: the SDK update and@sentry/bundler-plugins.This departs from sentry-wizard 9.1.0, which never passed
forceInstallto the source maps tool setups.Not changed: the source maps wizard's minimum-SDK-version update,
ensureMinimumSdkVersionIsInstalled, still installs withoutforceInstall. That install updates the SDK rather than a tool, and upstream didn't pass the flag there either.Fixes the Cursor Bugbot finding "Sourcemaps wizard drops forceInstall" on #2529.
via @BYK.
--
View Session [Sentry]