-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular-devkit/build-angular): resolve less from build-angular p…
…ackage
- Loading branch information
1 parent
5711e69
commit cc51432
Showing
4 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc51432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since making this update, Angular will no longer compile Semantic UI or Fomantic UI because less 4.x is used during compile time instead of Less 3.0. This was a breaking change between 11.1 and 11.2. Previously Less was resolved in our package.json devDependencies.
cc51432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In version 11.1, less compiler 4.1.0 was being used
angular-cli/packages/angular_devkit/build_angular/package.json
Line 40 in efd5724
cc51432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. It does mean that if folks previously supplied their own less 3.x version, it no longer will use that and instead use the 4.x which I realize is desired. I did check with the Fomantic project and it looks like they are fixing the LESS to be 4.x compatible in the next release so this should only be a short-term issue. Thanks for the quick response!
cc51432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is more of a defect, because build-angular provides it's own version of less, hence if the user installed less in their project it should have never been picked up as is not a peer dependency.
I also did a PR to change the math behaviour in version 11, this #20097