Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { configure } from '@storybook/svelte'
// automatically import all files ending in *.stories.js
configure(
require.context('../stories', true, /\.stories\.js$/),
module,
)
import { configure } from '@storybook/svelte';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
import { configure, addParameters, addDecorator } from '@storybook/svelte';
import { withA11y } from '@storybook/addon-a11y';
addDecorator(withA11y);
addParameters({
options: {
hierarchyRootSeparator: /\|/,
},
});
configure(require.context('../src/stories', true, /\.stories\.js$/), module);
import { configure } from '@storybook/svelte'
import '../public/global.css'
function loadStories() {
const req = require.context('../src/stories', true, /\.stories\.js$/)
req.keys().forEach(filename => req(filename))
}
configure(loadStories, module)