mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = async ({ config }) => {
|
|
config.module.rules.push({
|
|
test: [/\.stories\.js$/, /index\.js$/],
|
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
|
include: [path.resolve(__dirname, '../src')],
|
|
enforce: 'pre',
|
|
});
|
|
return config;
|
|
};
|