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

Make resolveConfig compatible with feature flag configs #2347

Merged
merged 2 commits into from
Sep 7, 2020

Conversation

adamwathan
Copy link
Member

Fixes #2345. Not the prettiest solution but this is broken and I'd rather fix it fast.

Basically we need to make sure the user-expected resolveConfig function imports all of the feature flagged config files as well, which isn't too nasty on its own, except that because flagged configs register plugins (like dark mode), we need to mutate the incoming config too to prepend any plugins added by flagged configs, since there is no "extend" API for plugins right now.

Grim but works.

@adamwathan adamwathan merged commit e5c193a into master Sep 7, 2020
@adamwathan adamwathan deleted the fix-resolve-config branch September 7, 2020 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResolveConfig with experimental -> uniformColorPalette
1 participant