Core: Fix presets stripping framework field

This commit is contained in:
Michael Shilman 2022-04-08 20:35:43 +08:00
parent a77f2d513b
commit b6e27b045c

View File

@ -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
);