mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
28 lines
625 B
JavaScript
28 lines
625 B
JavaScript
import { managerPreset } from '@storybook/core/server';
|
|
import packageJson from '../../package.json';
|
|
|
|
function extendOptions(options, extendServer) {
|
|
const { manualId } = options;
|
|
const storybookOptions = { manualId };
|
|
|
|
return {
|
|
...options,
|
|
extendServer,
|
|
packageJson,
|
|
mode: 'dev',
|
|
ignorePreview: true,
|
|
corePresets: [
|
|
{
|
|
name: managerPreset,
|
|
options: { managerEntry: require.resolve('../client/manager') },
|
|
},
|
|
{
|
|
name: require.resolve('./rn-options-preset.js'),
|
|
options: { storybookOptions },
|
|
},
|
|
],
|
|
};
|
|
}
|
|
|
|
export default extendOptions;
|