Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimizeSingleTheme: Detect missing keys and provide warning. #16

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

tylerkrupicka
Copy link
Contributor

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:

  • Add tests
  • Add docs
  • Add yourself to contributors (run yarn contributors:add)

@tylerkrupicka tylerkrupicka added the patch Increment the patch version when merged label Sep 16, 2020
@tylerkrupicka tylerkrupicka merged commit 3aac4ef into intuit:master Sep 16, 2020
@tylerkrupicka tylerkrupicka deleted the optimize-missing-error branch September 16, 2020 20:01
@hipstersmoothie
Copy link
Contributor

🚀 PR was released in v2.0.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants