Fix source map URLs for .NET 10 VMR builds#121923
Merged
akoeplinger merged 2 commits intomainfrom Nov 24, 2025
Merged
Conversation
Co-authored-by: akoeplinger <[email protected]>
Copilot
AI
changed the title
[WIP] Fix loading issue for githubusercontent in browser
Fix source map URLs for .NET 10 VMR builds
Nov 24, 2025
akoeplinger
approved these changes
Nov 24, 2025
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
pavelsavara
approved these changes
Nov 24, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes source map URLs for .NET 10 builds to work with the new VMR (Virtual Monolithic Repository) structure. Since .NET 10 now builds from dotnet/dotnet instead of dotnet/runtime, the source map URLs need to be updated to point to the correct repository and include the src/runtime/ path prefix.
- Updated source map URL generation in two rollup configuration files
- Changed repository reference from
dotnet/runtimetodotnet/dotnetwithsrc/runtime/path prefix
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/native/rollup.config.plugins.js |
Updated sourcemapPathTransform function to generate VMR-relative GitHub URLs with /src/runtime/ path prefix for CI builds |
src/mono/browser/runtime/rollup.config.js |
Updated sourcemapPathTransform function to generate VMR-relative GitHub URLs with /src/runtime/ path prefix for CI builds |
Member
|
/backport to release/10.0 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
4 tasks
This was referenced Nov 24, 2025
Open
lewing
pushed a commit
that referenced
this pull request
Nov 26, 2025
Backport of #121923 ## Customer Impact - [x] Customer reported: #121804 - [ ] Found internally .NET 10 builds from the VMR (dotnet/dotnet) instead of dotnet/runtime. Source maps generated during CI builds were pointing to the old repository, causing 404 errors when browser debuggers attempted to load TypeScript sources. ## Regression - [X] Yes - [ ] No This regressed when the official runtime build moved to happen in the VMR. ## Testing Local testing to make sure the correct URL is produced. ## Risk Low. This only affects debugging scenarios.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
.NET 10 builds from the VMR (dotnet/dotnet) instead of dotnet/runtime. Source maps generated during CI builds were pointing to the old repository, causing 404 errors when browser debuggers attempted to load TypeScript sources.
Changes
Updated
sourcemapPathTransformin rollup configurations to generate VMR-relative URLs:src/mono/browser/runtime/rollup.config.jssrc/native/rollup.config.plugins.jsFixes #121672
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.