Skip to content

Commit

Permalink
fix: remove plugin peer-deps-external on storybook builder
Browse files Browse the repository at this point in the history
  • Loading branch information
fpasquet committed Apr 11, 2023
1 parent 00894ae commit a1920c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ const config: StorybookConfig = {
if (configType === 'PRODUCTION') {
config.base = '/design-system/';
}

if (config.plugins) {
config.plugins = config.plugins.filter(plugin => {
if (Array.isArray(plugin)) {
return plugin;
}
return (plugin as { name: string; }).name !== 'peer-deps-external';
});
}

return mergeConfig(config, {
resolve: {
alias: [
Expand Down

0 comments on commit a1920c5

Please sign in to comment.