We have a while loop that checks for all @themes being removed from a declaration, however when in optimize mode if there was no key I was not replacing the theme. This led to an infinite loop.
My change adds a warning and removes the invalid declaration if this is encountered.
Why
Todo:
[ ] Add tests
[ ] Add docs
[ ] Add yourself to contributors (run yarn contributors:add)
What Changed
We have a while loop that checks for all @themes being removed from a declaration, however when in optimize mode if there was no key I was not replacing the theme. This led to an infinite loop.
My change adds a warning and removes the invalid declaration if this is encountered.
Why
Todo:
yarn contributors:add
)