2023-05-17 08:46:18 +03:00
|
|
|
import type { StorybookConfig } from "@storybook/react-vite";
|
2023-11-08 15:33:18 +03:00
|
|
|
|
2023-05-17 08:46:18 +03:00
|
|
|
const config: StorybookConfig = {
|
|
|
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
|
|
addons: [
|
|
|
|
"@storybook/addon-links",
|
|
|
|
"@storybook/addon-essentials",
|
|
|
|
"@storybook/addon-interactions",
|
|
|
|
{
|
|
|
|
name: '@storybook/addon-styling',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
framework: {
|
|
|
|
name: "@storybook/react-vite",
|
|
|
|
options: {},
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
autodocs: "tag",
|
|
|
|
},
|
2023-11-08 15:33:18 +03:00
|
|
|
async viteFinal(config, options) {
|
|
|
|
config.resolve!.alias = {
|
|
|
|
crypto: require.resolve('rollup-plugin-node-builtins')
|
2023-05-17 08:46:18 +03:00
|
|
|
}
|
|
|
|
return config;
|
2023-11-08 15:33:18 +03:00
|
|
|
}
|
2023-05-17 08:46:18 +03:00
|
|
|
};
|
|
|
|
export default config;
|