Repository navigation
Fix JSHost.Import from the WebWorker with fingerprinting enabled - #22330
Merged
Merged
Conversation
(cherry picked from commit 25fb39c)
maxkatz6
commented
Sep 27, 2026
| minify: true, | ||
| format: "esm", | ||
| target: "es2019", | ||
| target: "es2020", |
Member
Author
There was a problem hiding this comment.
Note that typescript config already targeted es2020.
NuGet packagesThe packages for this pull request have been published (workflow run):
|
grokys
pushed a commit
to Evan260/Avalonia
that referenced
this pull request
Oct 7, 2026
…valoniaUI#22330) (cherry picked from commit 25fb39c)
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.
What does the pull request do?
Fixes a regression from #22266
After that PR, avalonia JS files are fingerprinted (file hash included as file suffix).
JS modules resolve these files through
importmap, a dictionary of plain name to the physical file name to download. So it works in normal SingleThreaded app.In multithreading we run a custom WebWorker for the render thread, side-stepping .NET runtime things. And web workers don't have access to the document's importmap. And so, we need to manually resolve its physical file name once on main thread, before it's usable in web worker.