Skip to content

Commit

Permalink
Cleanup storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 7, 2024
1 parent d404e6e commit a2aed86
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const path = require("path");
const ROOT = path.resolve(__dirname, "..");
const STORIES = path.resolve(ROOT, "stories");

const wrapForPnp = (packageName) =>
path.dirname(require.resolve(path.join(packageName, "package.json")));

const config: StorybookConfig = {
addons: [
"@storybook/addon-essentials",
Expand All @@ -23,14 +20,14 @@ const config: StorybookConfig = {
},
},
},
wrapForPnp("@storybook/addon-webpack5-compiler-swc"),
"@storybook/addon-webpack5-compiler-swc",
"@chromatic-com/storybook",
],

stories: ["../stories/**/*.stories.tsx"],

framework: {
name: wrapForPnp("@storybook/react-webpack5"),
name: "@storybook/react-webpack5",
options: {
builder: {},
},
Expand Down

0 comments on commit a2aed86

Please sign in to comment.