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] Fix hot reload for components with collocated JS files #43199

Merged
merged 7 commits into from
Sep 10, 2024

Conversation

MackinnonBuck
Copy link
Member

@MackinnonBuck MackinnonBuck commented Sep 3, 2024

Some targets weren't re-running after a hot reload edit was made, and this caused the ApplyJsModules task to fail. This PR fixes the issue by updating the ResolveJSModuleStaticWebAssets target to list out its missing DependsOnTargets.

Fixes dotnet/aspnetcore#57599

@MackinnonBuck MackinnonBuck force-pushed the mbuck/fix-collocated-js-hot-reload branch from 8047b50 to 7b09a07 Compare September 4, 2024 21:07
@MackinnonBuck MackinnonBuck requested review from a team, tmat and arunchndr as code owners September 4, 2024 21:07
@MackinnonBuck MackinnonBuck changed the base branch from release/9.0.1xx to main September 4, 2024 21:07
@MackinnonBuck MackinnonBuck changed the title [release/9.0.1xx] [Blazor] Fix hot reload for components with collocated JS files [Blazor] Fix hot reload for components with collocated JS files Sep 4, 2024
@MackinnonBuck MackinnonBuck removed request for a team September 4, 2024 21:08
@MackinnonBuck MackinnonBuck removed request for a team, tmat and arunchndr September 4, 2024 21:08
@MiYanni
Copy link
Member

MiYanni commented Sep 6, 2024

You'll need to update to latest main if you want to resolve the TemplateEngine build failure.

@MackinnonBuck MackinnonBuck merged commit 5171dbf into main Sep 10, 2024
37 checks passed
@MackinnonBuck MackinnonBuck deleted the mbuck/fix-collocated-js-hot-reload branch September 10, 2024 16:06
@MackinnonBuck
Copy link
Member Author

/backport to release/9.0.1xx

Copy link
Contributor

Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/12017540612

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collocation JavaScript file breaks Hot Reload
3 participants