Skip to content

Commit 35c2b29

Browse files
committed
Fix storybook issue when importing local modules
reference: storybookjs/storybook#11255 (comment)
1 parent 32878f4 commit 35c2b29

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: packages/docs/.storybook/main.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
const path = require('path');
2+
13
module.exports = {
24
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
35
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
6+
webpackFinal: (config, { configType }) => {
7+
config.resolve.alias['core-js'] = path.dirname(require.resolve('core-js'));
8+
return config;
9+
},
410
};

0 commit comments

Comments
 (0)