Validate optional live-debugger version#325
Merged
yoannmoinet merged 2 commits intomasterfrom Apr 20, 2026
Merged
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 19, 2026
Add an optional version field to the live-debugger plugin config and use it to validate consistency with sourcemap uploads. This documents the browser build identity contract while still allowing instrumentation to work when no version is configured.
edb4ac4 to
af0764e
Compare
Base automatically changed from
watson/DEBUG-5291/add-live-debugger-plugin
to
master
April 20, 2026 13:42
This was referenced Apr 21, 2026
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.

Motivation
Browser Live Debugger needs a stable build identifier when we want to resolve browser probe results back to uploaded sourcemap metadata, but that value should stay optional so instrumentation can still work when no version is configured.
Changes
This PR updates the Live Debugger build-plugin config to understand an optional
liveDebugger.versionfield.Before these changes:
versionoptionWith these changes:
version?: stringtoLiveDebuggerOptionsversionthrough the validated options shapeversionis a string when providedliveDebugger.versionmatcheserrorTracking.sourcemaps.releaseVersionwhen both are configuredversionoptional so Live Debugger still works without source-aware browser build lookupversionsemantics in the plugin READMETesting
yarn test:unit packages/plugins/live-debugger/src/validate.test.ts packages/plugins/live-debugger/src/index.test.tsReadLintsreported no linter errors on the changed files