Skip to content

fix(@angular-devkit/build-angular): use component style load result caching information for file watching - #26081

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:esbuild/load-result-watching
Oct 23, 2023
Merged

clydin merged 1 commit into
angular:mainfrom
clydin:esbuild/load-result-watching

Conversation

@clydin

@clydin clydin commented Oct 20, 2023

Copy link
Copy Markdown
Member

When using the esbuild-based builders (application/browser-esbuild) in watch mode including ng serve, component stylesheets that used Sass and imported other stylesheets were previously no properly tracked. As a result, changes to the imported stylesheets would not invalidate the component and the rebuild would not contain the updated styles. The files used by the Sass (and Less) stylesheet processing are now correctly tracked in these cases.

@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Oct 20, 2023
@clydin
clydin requested a review from alan-agius4 October 20, 2023 17:32
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 20, 2023
…aching information for file watching

When using the esbuild-based builders (`application`/`browser-esbuild`) in watch mode including `ng serve`,
component stylesheets that used Sass and imported other stylesheets were previously no properly tracked.
As a result, changes to the imported stylesheets would not invalidate the component and the rebuild would
not contain the updated styles. The files used by the Sass (and Less) stylesheet processing are now correctly
tracked in these cases.
@clydin
clydin force-pushed the esbuild/load-result-watching branch from 73f1df2 to c05aa12 Compare October 20, 2023 19:16
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 23, 2023
@clydin
clydin merged commit 7229a3d into angular:main Oct 23, 2023
@clydin
clydin deleted the esbuild/load-result-watching branch October 23, 2023 22:57
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[browser-esbuild] in live reload mode @imported saas styles not reflected in frontend without manully restarting server

2 participants