1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-06 07:21:16 +08:00

12 lines
301 B
JavaScript

const path = require('path');
module.exports = async ({ config }) => {
config.module.rules.push({
test: [/\.stories\.js$/, /index\.js$/],
loaders: [require.resolve('@storybook/source-loader')],
include: [path.resolve(__dirname, '../src')],
enforce: 'pre',
});
return config;
};