From a48559e3dbee58835cebb5eeaaa86c585f1ae50f Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 22 Mar 2022 17:39:10 -0400 Subject: [PATCH] Storybook and vite --- .storybook/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.storybook/main.js b/.storybook/main.js index 9fa12a9..21445a9 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -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; },