mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 07:11:36 +08:00
Core: Fix presets stripping framework field
This commit is contained in:
parent
a77f2d513b
commit
b6e27b045c
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user