Repository navigation
fix: Skip dotnet.js fingerprinting when WasmFingerprintAssets is off - #1088
Merged
Merged
Conversation
With asset fingerprinting off the SDK emits plain dotnet.native.js and dotnet.runtime.js, which the publish glob took for dotnet.<hash>.js and wrote into uno-config.js, so the runtime never started (fixes #1087). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RmQxnEJV3aAPGZu877LCaK
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RmQxnEJV3aAPGZu877LCaK
1 of 5 tasks
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-river-0087b630f-1088.eastus2.1.azurestaticapps.net |
ramezgerges
approved these changes
Oct 7, 2026
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
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.
Fixes #1087
What changed
With
WasmFingerprintAssets=false, the SDK emits unfingerprinteddotnet.js,dotnet.native.jsanddotnet.runtime.js. dotnet.js fingerprinting was still on by default, so the publish-time rewrite mistookdotnet.runtime.jsfordotnet.<hash>.js. It wrote that intouno-config.js, and the app failed at startup withCannot read properties of undefined (reading 'withModuleConfig').WasmShellEnableDotnetJsFingerprintingnow defaults tofalsewhenWasmFingerprintAssetsisfalse. An explicit value still wins._UnoUpdateDotnetJsFingerprintPublishOutputalso excludes the plaindotnet.native.js/dotnet.runtime.js, matching the WebWorker target. If fingerprinting is forced on while assets aren't fingerprinted, the build now fails with UNOWASM001 instead of producing a brokenuno-config.js.Validation
src/Uno.Wasm.Tests.Fingerprint/test-fingerprint.shhas a new Test 8: publish with-p:WasmFingerprintAssets=false, then assert thatuno-config.jsreferencesdotnet.jsand the file exists.uno-config.jshaddotnet_js_filename = "dotnet.runtime.js".-p:WasmFingerprintAssets=false -p:WasmShellEnableDotnetJsFingerprinting=truenow fails witherror UNOWASM001.Found via the unoplatform/uno SamplesApp WebAssembly runtime tests on bootstrap 10.1.0-dev.217 (unoplatform/uno#24830). They work around it for now by setting
WasmShellEnableDotnetJsFingerprinting=false.🤖 Generated with Claude Code
https://claude.ai/code/session_01RmQxnEJV3aAPGZu877LCaK