You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
624 B
25 lines
624 B
3 years ago
|
const rootMain = require('../../../.storybook/main');
|
||
|
|
||
|
module.exports = {
|
||
|
...rootMain,
|
||
|
|
||
|
core: { ...rootMain.core, builder: 'webpack5' },
|
||
|
|
||
|
stories: [
|
||
|
...rootMain.stories,
|
||
|
'../src/lib/**/*.stories.mdx',
|
||
|
'../src/lib/**/*.stories.@(js|jsx|ts|tsx)'
|
||
|
],
|
||
|
addons: [...rootMain.addons],
|
||
|
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 });
|
||
|
}
|
||
|
|
||
|
// add your own webpack tweaks if needed
|
||
|
|
||
|
return config;
|
||
|
}
|
||
|
};
|