Skip to content

[wasm] Don't call .NET runtime if browser refresh script for HotReload is missing #50138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maraf
Copy link
Member

@maraf maraf commented Aug 8, 2025

The scenario that happens is:

  • Application is published in debug, meaning the HotReload package is referenced
  • Since it's publish, ILLink will remove all un-referenced assemblies
  • Running the publish output results in calling JSExport that has been ILLinked out

To mitigate it, we don't call JSExport when browser refresh script is not used

Related to dotnet/runtime#118442

@maraf maraf added this to the 10.0.1xx milestone Aug 8, 2025
@maraf maraf self-assigned this Aug 8, 2025
@maraf maraf added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Aug 8, 2025
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.

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.

2 participants