sass / migrator

Tool for migrating stylesheets to new Sass versions
MIT License
84 stars 10 forks source link

Refactor how `@import` rules are migrated #172

Closed jathak closed 3 years ago

jathak commented 3 years ago

Fixes #170.

This refactors the migration of imports so that the entire rule is migrated in one patch, as opposed to patching each import within a rule separately. Migration for nested imports is also now factored out into its own helper (_migrateImportToLoadCss).

As part of this refactor, I also made three behavior changes: