mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
22 lines
440 B
TypeScript
22 lines
440 B
TypeScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: [/\.stories\.tsx?$/, /index\.ts$/],
|
|
loaders: [
|
|
{
|
|
loader: require.resolve('@storybook/addon-storysource/loader'),
|
|
options: {
|
|
parser: 'typescript',
|
|
},
|
|
},
|
|
],
|
|
include: [path.resolve(__dirname, '../src')],
|
|
enforce: 'pre',
|
|
},
|
|
],
|
|
},
|
|
};
|