Gytis Vinclovas 53550c6629 Merge next
2018-12-19 15:46:13 +02:00

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;