-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathmain.ts
28 lines (27 loc) · 1 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { withOverview } from 'bookcase-builder';
import preprocess from 'svelte-preprocess';
export default withOverview(__dirname)({
framework: '@storybook/svelte',
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx|svelte)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-svelte-csf'],
core: {
builder: '@storybook/builder-vite',
// we don't want to muck up the data when we're working on the builder
disableTelemetry: true,
},
features: {
// On-demand store does not work for .svelte stories, only CSF.
storyStoreV7: false,
},
async viteFinal(config, { configType }) {
// customize the Vite config here
return config;
},
// @ts-ignore
svelteOptions: {
preprocess: preprocess(),
// Possible with @sveltejs/vite-plugin-svelte version 1.0.0-next.43 or higher.
// Focus a story iframe and press cmd+shift (mac) or ctrl+shift (windows) to activate.
experimental: { inspector: true },
},
});