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',
},
],
},
};