Closed jathak closed 5 years ago
When attempting to a remove a prefix from a stylesheet like
$lib-var: red; a { $lib-var: blue !global; }
the migrator crashes, since it attempts to patch the name of the second $lib-var declaration twice.
$lib-var
I believe this is due to the parser adding extra VariableDeclarations to the top level of the Stylesheet to work around sass/sass#2647.
VariableDeclaration
Stylesheet
We need to detect these fake declarations and avoid visiting them (or at least avoid patching them) in the module migrator.
When attempting to a remove a prefix from a stylesheet like
the migrator crashes, since it attempts to patch the name of the second
$lib-var
declaration twice.I believe this is due to the parser adding extra
VariableDeclaration
s to the top level of theStylesheet
to work around sass/sass#2647.We need to detect these fake declarations and avoid visiting them (or at least avoid patching them) in the module migrator.