Releases: sass/migrator
Sass Migrator 2.6.0
Module Migrator
-
Add support for import-only files that include a mixin from their corresponding regular file. For example, given code like:
styles.scss:a { $color: blue; @import "library"; background: $bg; }
_library.scss:$bg: gold; @mixin styles($color) { b { color: $color; } }
_library.import.scss:@forward "library"; @use "library"; @include library.styles($color);the migrator will migrate
styles.scssto:@use "library"; a { $color: blue; @include library.styles($color); background: library.$bg; }While the migrator won't generate import-only files with this structure, this support for them will enable migration of projects that use nested and late imports that both emit CSS and provide Sass members by first manually wrapping the nested imports' CSS in mixins and then running the migrator to actually handle the nested imports.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.7
- Fix a bug where the
--migrate-depsflag would not apply to dependencies via@forwardrules.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.6
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.5
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.4
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.3
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.2
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.1
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.0
if() Function Migrator
- Added a new
if-functionmigrator to convert the legacy Sassif()function syntax into the new CSS syntax. See the Sass website for details.
See the full changelog for changes in earlier releases.
Sass Migrator 2.4.2
Module Migration
-
Late
@importrules can now be hoisted above safe at-rules in the same file. -
Fix a typo in the error message for late
@importrules that could not be migrated. -
Fix a bug where hoisted
@userules with configuration would have incorrect syntax.
See the full changelog for changes in earlier releases.