Skip to content

[StaticWebAsset] Exclude source maps from updating fingerprinted blazor.js - #49178

Merged
akoeplinger merged 4 commits into
dotnet:mainfrom
maraf:BlazorFingerprintSourceMap
Jun 2, 2025
Merged

akoeplinger merged 4 commits into
dotnet:mainfrom
maraf:BlazorFingerprintSourceMap

Conversation

@maraf

@maraf maraf commented May 28, 2025

Copy link
Copy Markdown
Member

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, StaticWebAssetsSDK 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
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

…6_0.targets

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@maraf

maraf commented Jun 2, 2025

Copy link
Copy Markdown
Member Author

/ba-g Failures are not related

@akoeplinger
akoeplinger merged commit a1d1567 into dotnet:main Jun 2, 2025
@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, StaticWebAssetsSDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants