Skip to content
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

[Blazor] Avoid defining webassembly.js as a framework asset #59965

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

javiercn
Copy link
Member

@javiercn javiercn commented Jan 20, 2025

  • The only assets that need to go into the .Internal.Assets package are blazor.web.js and blazor.server.js.
  • blazor.webassembly.js should continue shipping as a package.

We should look into making blazor.webassembly.js a regular static web asset, instead of the custom dance that happens now.

This change is in reaction to an issue we are seeing in a dependency update PR where blazor.webassembly.js is getting included twice.

Once by _ResolveBlazorFrameworkAssets and another one by _ResolveBlazorWasmOutputs.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Jan 20, 2025
@javiercn javiercn force-pushed the javiercn/framework-assets-fix branch from ea34936 to be04b5d Compare January 20, 2025 19:19
@javiercn javiercn force-pushed the javiercn/framework-assets-fix branch from 95b8ba9 to d1dad38 Compare January 21, 2025 15:42
@javiercn javiercn marked this pull request as ready for review January 21, 2025 18:11
@javiercn javiercn requested a review from a team as a code owner January 21, 2025 18:11
@@ -1,3 +1,11 @@
<Project>
<PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(BuildNodeJS)' != 'false'">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BuildNodeJs is `` in some cases, so this check needs to explicitly check against false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants