Skip to content

Commit

Permalink
Fix storybook issue when importing local modules
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Mar 31, 2021
1 parent 32878f4 commit 35c2b29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/docs/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
const path = require('path');

module.exports = {
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
webpackFinal: (config, { configType }) => {
config.resolve.alias['core-js'] = path.dirname(require.resolve('core-js'));
return config;
},
};

0 comments on commit 35c2b29

Please sign in to comment.