Skip to content

fix(@angular/build): include dataurl option in global stylesheet config hash - #34135

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:fix/stylesheet-config-hash-dataurl
Sep 21, 2026
Merged

clydin merged 1 commit into
angular:mainfrom
clydin:fix/stylesheet-config-hash-dataurl

Conversation

@clydin

@clydin clydin commented Sep 21, 2026

Copy link
Copy Markdown
Member

The global stylesheet configuration hash did not include the 'dataurl' option from 'BundleStylesheetOptions'. When persistent stylesheet caching is enabled, toggling or changing the 'dataurl' option should invalidate cached stylesheet bundles.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request integrates the "dataurl" option into the global stylesheet config hash calculation and adds a test case to verify that changing this option alters the generated hash. The review feedback suggests normalizing "options.dataurl" to a boolean (e.g., "options.dataurl ?? false") to ensure that omitting the property versus explicitly setting it to "false" does not result in different cache hashes due to JSON serialization. Additionally, it is recommended to add a test case to verify this normalization behavior.

Comment thread packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-cache-key.ts Outdated
…ig hash

The global stylesheet configuration hash did not include the 'dataurl' option from 'BundleStylesheetOptions'. When persistent stylesheet caching is enabled, toggling or changing the 'dataurl' option should invalidate cached stylesheet bundles.
@clydin
clydin force-pushed the fix/stylesheet-config-hash-dataurl branch from 1af4215 to bb89fc5 Compare September 21, 2026 15:45
@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Sep 21, 2026
@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 Sep 21, 2026
@clydin
clydin merged commit 69acf5b into angular:main Sep 21, 2026
42 checks passed
@clydin

clydin commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

This PR was merged into the repository. The changes were merged into the following branches:

@clydin
clydin deleted the fix/stylesheet-config-hash-dataurl branch September 21, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants