Storybook and vite

main
Yanick Champoux 2022-03-22 17:39:10 -04:00
parent e95e1233ab
commit a48559e3db
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const path = require("path");
const preprocess = require("svelte-preprocess");
module.exports = {
// core: { builder: "storybook-builder-vite" },
// core: { builder: "storybook-builder-vite" },
staticDirs: ["../static", "../pictures"],
stories: [
"../src/**/*.stories.mdx",
@ -22,6 +22,8 @@ module.exports = {
config.resolve.alias.$lib = path.resolve(__dirname, "../src/lib/");
config.resolve.alias.$app = path.resolve(__dirname, "../fake/app/");
config.resolve.dedupe = ["@storybook/client-api"];
// return the customized config
return config;
},