Skip to content

Conversation

@maraf
Copy link
Member

@maraf maraf commented May 28, 2025

Regression from #46988.

During build we fingerprint .js, but the publish target expected to fingerprint all assets in _BlazorJSFile. Under some scenarios this collection also contains .js.map files.

This PR updates the logic to explicitly exclude .map files from the affected target logic.

@maraf maraf added this to the 10.0.1xx milestone May 28, 2025
@maraf maraf self-assigned this May 28, 2025
Copilot AI review requested due to automatic review settings May 28, 2025 07:44
@maraf maraf added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label May 28, 2025
@maraf maraf requested a review from a team as a code owner May 28, 2025 07:44
@dotnet-policy-service
Copy link
Contributor

Thanks for your PR, @@maraf.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a regression by updating the logic to exclude .map files from the fingerprinting process in Blazor during build and publish. The changes include:

  • Adding a PropertyGroup to store JavaScript file names.
  • Filtering and adjusting item groups to ensure only .js files are processed.
  • Updating static web asset item names and references accordingly.

@maraf
Copy link
Member Author

maraf commented Jun 2, 2025

/ba-g Failures are not related

@akoeplinger akoeplinger merged commit a1d1567 into dotnet:main Jun 2, 2025
27 of 30 checks passed
@maraf maraf deleted the BlazorFingerprintSourceMap branch June 2, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants