[Blazor] .NET 9 generated JS uses high version syntax leading to compatibility issues #59090
Open
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Status: Resolved
Milestone
Is there an existing issue for this?
Describe the bug
The blazor.*.js files generated by .NET 9 utilize the static initialization block feature introduced in ES13. This usage causes compatibility issues on lower-end devices and older browsers.
You can find instances of this issue by searching for
static{
in the generated files.related issue: dotnet/maui#24278 dotnet/maui#25862
Expected Behavior
Regenerate using ES6 as the target, just like before.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
net9.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: