Release Notes / Version 12.2412.0
Table Of ContentsAs node-sass has been deprecated we replaced the dependency with the new default implementation "dart-sass" which is actively maintained.
As it is a different implementation with some limitations regarding the loader API the following breaking changes have been made:
SCSS syntax checking may be more strict, leading to possible errors if invalid SCSS is encountered
As the new importer API doesn't allow tracking and intercepting all @imports anymore, the following custom scss importers have been removed without replacement
sassExcludeImport - this means that you can no longer exclude certain imports with the "?exclude" suffix
sassImportOnce - see below
dependencyCheckPlugin.getNodeSassImporter() - meaning we will no longer check if all dependencies have been properly declared in the package.json
When importing a SCSS file multiple times all imports except for the last imports will be ignored. This is a major difference to the behavior of our old custom sassImportOnce loader which kept the first imports. If you are encountering issues with the order of the generated css rules, this should be the first thing to inspect
(CMS-18916)