dotnet / dotnet/aspnetcore

[Blazor] Don't include blazor.web.js or blazor.server.js if the app doesn't reference Microsoft.AspNetCore.Components.Endpoints or Microsoft.AspNetCore.Components.Server

Open
#60,011 1 comment 0 reactions 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Right now, we include the files as assets when the app references one of the two. We should be able to determine when the app is referencing the `.Endpoints` and `.Components.Server` assemblies and only include the assets in those situations.

Contributor guide

Open the contributing guide

Research direction

Start by locating the asset inclusion logic for blazor.web.js and blazor.server.js, then trace how assembly references are detected. Verify behavior for apps referencing Microsoft.AspNetCore.Components.Endpoints, Microsoft.AspNetCore.Components.Server, both, or neither; done means assets are included only for the applicable references.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.