Skip to content

Fix hot reload#2440

Merged
HerrTopi merged 1 commit intov12from
fix_hot_reload
Mar 11, 2026
Merged

Fix hot reload#2440
HerrTopi merged 1 commit intov12from
fix_hot_reload

Conversation

@HerrTopi
Copy link
Contributor

In the current v12 impoemetation, the hotreload functionality is broken, due to not setting properly where webpack should read component files. It would defult to built files (es/*) but the alias field will re-point it to the src files in the webpack config. The alias field is populated from resolve.mjs. Since we added multiple versions of each component, we need to point each of the different versions to their correct src/ path. This would require constant updating and bloating of the resolve.mjs file. Instead, there is an resolve field option in webpack config that can tell webpack where to look for the files. We point it to the src/ path. I added these src paths to each and every package.jsons.

TEST PLAN: check if hot reload works as indended and think of potential side effects

@HerrTopi HerrTopi changed the base branch from master to v12 March 10, 2026 16:54
@github-actions
Copy link

github-actions bot commented Mar 10, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-11 12:59 UTC

@HerrTopi HerrTopi requested review from balzss and matyasf and removed request for balzss March 10, 2026 17:17
Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

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

I like it a lot, very elegant solution :) just one nitpick

@HerrTopi HerrTopi self-assigned this Mar 10, 2026
@HerrTopi HerrTopi requested a review from matyasf March 10, 2026 22:15
Copy link
Contributor

@balzss balzss left a comment

Choose a reason for hiding this comment

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

better than before 👍

@HerrTopi HerrTopi merged commit 15020c2 into v12 Mar 11, 2026
8 of 9 checks passed
@HerrTopi HerrTopi deleted the fix_hot_reload branch March 11, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants