prosemirror-markdown/.storybook/main.cjs

23 lines
696 B
JavaScript
Raw Permalink Normal View History

2022-06-02 16:39:39 +02:00
module.exports = {
2022-06-06 18:48:59 +02:00
// NOTE! added support for Vite builder
webpackFinal: async (config) => {
const svelteLoader = config.module.rules.find(
(r) => r.loader && r.loader.includes('svelte-loader')
);
svelteLoader.options.preprocess = require('svelte-preprocess')();
return config;
},
core: {
builder: 'storybook-builder-vite'
},
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-svelte-csf'],
svelteOptions: {
preprocess: require('svelte-preprocess')({
typescript: true,
postcss: true,
sourceMap: true
})
2022-06-02 16:39:39 +02:00
}
2022-06-06 18:48:59 +02:00
};