Skip to content

Conversation

alan-agius4
Copy link
Collaborator

The javascriptEnabled option for the Less CSS preprocessor has been deprecated since v18 and its usage was behind a warning. This functionality is now fully removed.

This change simplifies the Less stylesheet processing by removing the retry logic that attempted to compile with inline JavaScript enabled after an initial failure.

BREAKING CHANGE: The javascriptEnabled option for Less is no longer supported. Projects relying on inline JavaScript within Less files will need to refactor their stylesheets to remove this dependency.

… Less

The `javascriptEnabled` option for the Less CSS preprocessor has been deprecated since v18 and its usage was behind a warning. This functionality is now fully removed.

This change simplifies the Less stylesheet processing by removing the retry logic that attempted to compile with inline JavaScript enabled after an initial failure.

BREAKING CHANGE: The `javascriptEnabled` option for Less is no longer supported. Projects relying on inline JavaScript within Less files will need to refactor their stylesheets to remove this dependency.
@angular-robot angular-robot bot added detected: breaking change PR contains a commit with a breaking change area: @angular/build labels Sep 22, 2025
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Sep 22, 2025
@alan-agius4 alan-agius4 requested a review from clydin September 22, 2025 13:30
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 22, 2025
@alan-agius4 alan-agius4 marked this pull request as ready for review September 22, 2025 13:30
@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 22, 2025
@alan-agius4 alan-agius4 merged commit 1397585 into angular:main Sep 22, 2025
37 checks passed
@alan-agius4 alan-agius4 deleted the js-deprecate-less branch September 22, 2025 13:47
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 detected: breaking change PR contains a commit with a breaking change target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants