mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 06:01:48 +08:00
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = baseConfig => {
|
|
baseConfig.module.rules.push({
|
|
test: [
|
|
/\.stories\.tsx?$/,
|
|
/index\.ts$/
|
|
],
|
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
|
include: [path.resolve(__dirname, '../src')],
|
|
enforce: 'pre',
|
|
});
|
|
|
|
return baseConfig;
|
|
};
|