Skip to content

Commit 0780a0a

Browse files
committed
Fix storybook storysource
1 parent 17e032b commit 0780a0a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.storybook/main.js

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ module.exports = {
1616
include: path.resolve(__dirname, '../src'),
1717
});
1818

19+
config.module.rules.push({
20+
test: /stories\/(.+).tsx$/,
21+
loaders: [require.resolve('@storybook/addon-storysource/loader')],
22+
enforce: 'pre',
23+
});
24+
1925
config.module.rules.push({
2026
test: /\.(ts|tsx)$/,
2127
use: [

0 commit comments

Comments
 (0)