From b6e27b045c29fdb4a757391b4d3cb4b9875de3ea Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 8 Apr 2022 20:35:43 +0800 Subject: [PATCH] Core: Fix presets stripping framework field --- lib/core-common/src/presets.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core-common/src/presets.ts b/lib/core-common/src/presets.ts index 24093df1533..2a028dfd128 100644 --- a/lib/core-common/src/presets.ts +++ b/lib/core-common/src/presets.ts @@ -195,18 +195,18 @@ export function loadPreset( } if (isObject(contents)) { - const { addons: addonsInput, presets: presetsInput, framework, ...rest } = contents; + const { addons: addonsInput, presets: presetsInput, ...rest } = contents; const subPresets = resolvePresetFunction( presetsInput, presetOptions, - framework, + rest.framework, storybookOptions ); const subAddons = resolvePresetFunction( addonsInput, presetOptions, - framework, + rest.framework, storybookOptions );