import { mergeConfig } from "vite";
export default {
stories: [
// π remember to define the path according to your configuration
"../../components/**/*.stories.mdx",
"../../components/**/*.stories.@(js|jsx|ts|tsx)",
"../../components/*.stories.mdx",
"../../components/*.stories.@(js|jsx|ts|tsx)",
],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: {
name: "@storybook/web-components-vite",
options: {},
},
async viteFinal(config, { configType }) {
// π return the customized config
return mergeConfig(config, {
plugins: [
...(await import("@atomico/vite")).default({
// π needed to define files that use JSX/TSX
storybook: ["components/**/*"],
}),
],
});
},
};
v