mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
f3951e1680
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8079 Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com> GitOrigin-RevId: 46b1ed03ab225fccc9d769203d1af11a6bcdb63e
34 lines
801 B
TypeScript
34 lines
801 B
TypeScript
import type { StorybookConfig } from '@storybook/core-common';
|
|
import { Configuration } from 'webpack';
|
|
import rootMain from '../../../../.storybook/main';
|
|
|
|
const config: StorybookConfig = {
|
|
...rootMain,
|
|
|
|
core: { ...rootMain.core, builder: 'webpack5' },
|
|
|
|
staticDirs: ['../../../../static'],
|
|
|
|
stories: [
|
|
'../src/lib/**/*.stories.mdx',
|
|
'../src/lib/**/*.stories.@(js|jsx|ts|tsx)',
|
|
],
|
|
|
|
addons: [
|
|
'@storybook/addon-essentials',
|
|
...rootMain.addons,
|
|
'@nrwl/react/plugins/storybook',
|
|
],
|
|
|
|
webpackFinal: async (config: Configuration) => {
|
|
// apply any global webpack configs that might have been specified in .storybook/main.ts
|
|
if (rootMain.webpackFinal) {
|
|
config = await rootMain.webpackFinal(config);
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default config;
|