2018-06-19 23:52:39 +02:00

16 lines
410 B
JavaScript

import { configure } from '@storybook/svelte';
import { setOptions } from '@storybook/addon-options';
// Used with @storybook/addon-options/register
setOptions({ hierarchyRootSeparator: /\|/ });
function loadStories() {
require('../src/stories');
const req = require.context('../src/stories', true, /\.stories\.js$/);
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module);