mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +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)) {
|
if (isObject(contents)) {
|
||||||
const { addons: addonsInput, presets: presetsInput, framework, ...rest } = contents;
|
const { addons: addonsInput, presets: presetsInput, ...rest } = contents;
|
||||||
|
|
||||||
const subPresets = resolvePresetFunction(
|
const subPresets = resolvePresetFunction(
|
||||||
presetsInput,
|
presetsInput,
|
||||||
presetOptions,
|
presetOptions,
|
||||||
framework,
|
rest.framework,
|
||||||
storybookOptions
|
storybookOptions
|
||||||
);
|
);
|
||||||
const subAddons = resolvePresetFunction(
|
const subAddons = resolvePresetFunction(
|
||||||
addonsInput,
|
addonsInput,
|
||||||
presetOptions,
|
presetOptions,
|
||||||
framework,
|
rest.framework,
|
||||||
storybookOptions
|
storybookOptions
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user