14 lines
398 B
JavaScript
14 lines
398 B
JavaScript
const svgrPlugin = require("vite-plugin-svgr");
|
|
|
|
module.exports = {
|
|
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
|
|
framework: "@storybook/react",
|
|
core: {
|
|
builder: "storybook-builder-vite",
|
|
},
|
|
async viteFinal(config) {
|
|
config.plugins.push(svgrPlugin());
|
|
return config;
|
|
},
|
|
};
|