Skip to content

Commit

Permalink
Remove patch
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed May 13, 2024
1 parent b62ee47 commit 7f16d7d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ const config: StorybookConfig = {
"@storybook/addon-storysource",
],
async viteFinal(config, { configType }) {
// https://github.com/storybookjs/storybook/issues/26532 - package-deduplication breaks ag-grid-react.
const fixedConfig = {
...config,
plugins: config.plugins?.filter(
// @ts-ignore
(plugin) => plugin?.name !== "storybook:package-deduplication"
),
};
const { mergeConfig } = await import("vite");

const customConfig: UserConfig = {
plugins: [cssInline(), cssVariableDocgen()],
Expand All @@ -49,7 +42,7 @@ const config: StorybookConfig = {
);
}

return mergeConfig(customConfig, fixedConfig);
return mergeConfig(customConfig, config);
},
};

Expand Down

0 comments on commit 7f16d7d

Please sign in to comment.