From b6b3f854a73ccf9542f744c29de17e1dfc473061 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 10 Jul 2023 16:06:47 +0200 Subject: [PATCH] fix experimental feature flag resolution for 'all' When you have a custom config for the prefix/separator values, then we want to disable the `oxideParser` for now. But we also have to ensure that if you use the value `"all"` for the experimental feature flag that we enable all feature flags. We were using the keys of the array instead of the values. --- src/util/normalizeConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/normalizeConfig.js b/src/util/normalizeConfig.js index edab3f466..c7c7c1c71 100644 --- a/src/util/normalizeConfig.js +++ b/src/util/normalizeConfig.js @@ -299,7 +299,7 @@ export function normalizeConfig(config) { if (config.prefix !== '' || config.separator !== ':') { if (config.experimental === 'all') { config.experimental = {} - for (let key in featureFlags.experimental) { + for (let key of featureFlags.experimental) { config.experimental[key] = true } } else {