INNER CODE UNIT · TypeScript
isExcluded
hatchet-dev/hatchet · frontend/app/.storybook/main.ts:5
const isExcluded = (name: string) =>
excludedPlugins.some((prefix) => name.startsWith(prefix));
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
addons: ['@storybook/addon-docs', '@storybook/addon-a11y'],
framework: {
name: '@storybook/react-vite',
options: {},
},
viteFinal: (config) => ({
...config,
plugins: config.plugins
?.flat()
.filter(
(plugin) => !(plugin && 'name' in plugin && isExcluded(plugin.name)),
),
}),