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

fix(@angular-devkit/build-angular): ensure empty optimized Sass stylesheets stay empty #26664

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

clydin
Copy link
Member

@clydin clydin commented Dec 13, 2023

When an optimized Sass stylesheet becomes an empty string the AOT Angular host adapter was previously treating this as a falsy value and using the original content of the stylesheet. Empty strings are now considered valid values and will be passed to the AOT compiler as such.

Closes: #26653

@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Dec 13, 2023
@clydin clydin requested a review from alan-agius4 December 13, 2023 16:26
@clydin clydin linked an issue Dec 13, 2023 that may be closed by this pull request
1 task
@alan-agius4
Copy link
Collaborator

Can you also add Closes: #26653 in the commit footer?

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 13, 2023
@clydin clydin force-pushed the esbuild/empty-optimized-sass branch from c7ac3e2 to e5f5a18 Compare December 13, 2023 16:53
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Dec 13, 2023
…sheets stay empty

When an optimized Sass stylesheet becomes an empty string the AOT Angular host adapter
was previously treating this as a falsy value and using the original content of the
stylesheet. Empty strings are now considered valid values and will be passed to the
AOT compiler as such.
@clydin clydin force-pushed the esbuild/empty-optimized-sass branch from e5f5a18 to 3f276e2 Compare December 13, 2023 16:58
@alan-agius4 alan-agius4 merged commit 0fa1e34 into angular:main Dec 13, 2023
@clydin clydin deleted the esbuild/empty-optimized-sass branch December 13, 2023 17:49
@angular-automatic-lock-bot
Copy link

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 Jan 13, 2024
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: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@import with Sass causes errors with browser-esbuild and application builders
2 participants