mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
57e62c3d40
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7646 Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com> GitOrigin-RevId: cc26aff8d9241bfbec1c019da9f681ec62a76ea3
28 lines
693 B
JavaScript
28 lines
693 B
JavaScript
const webpack = require('webpack');
|
|
const rootMain = require('../../../../.storybook/main');
|
|
|
|
module.exports = {
|
|
...rootMain,
|
|
|
|
core: { ...rootMain.core, builder: 'webpack5' },
|
|
|
|
staticDirs: ['../../../../static'],
|
|
|
|
stories: [
|
|
...rootMain.stories,
|
|
'../src/lib/**/*.stories.mdx',
|
|
'../src/lib/**/*.stories.@(js|jsx|ts|tsx)',
|
|
],
|
|
|
|
addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'],
|
|
|
|
webpackFinal: async (config, { configType }) => {
|
|
// apply any global webpack configs that might have been specified in .storybook/main.js
|
|
if (rootMain.webpackFinal) {
|
|
config = await rootMain.webpackFinal(config, { configType });
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|