sass / migrator

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

`keywords()` converted to `map.keywords()` #219

Closed myakura closed 2 years ago

myakura commented 2 years ago

I run the migrator to convert my classic scss files to use the new module system. It worked fine except converting the keywords() function.

The current version (v1.5.3) converts keywords() to map.keywords():

- $args: keywords($args);
+ $args: map.keywords($args);

However, keywords() is defined in the meta module. https://sass-lang.com/documentation/modules/meta#keywords

I looked at the source code and found "keywords": "map", https://github.com/sass/migrator/blob/3d6b449372254e967f4f3f878b5e82a43088c463/lib/src/migrators/module/built_in_functions.dart#L39

Should this be "keywords": "meta", ?