Support typescript in storybook
hyochan opened this issue · 1 comments
hyochan commented
Is your feature request related to a problem? Please describe.
If stories has tsx
extension, it won't appear in stories.
Describe the solution you'd like
Make tsx
extension to appear in stories
P.S. @EvanBacon Thanks for the nice work so far.
hyochan commented
Looks like it's an easy solution. Just by changing .storybook/config.js
.
import { configure } from "@storybook/react";
// automatically import all files ending in *.stories.js
configure(require.context("../stories", true, /\.stories\.tsx$/), module);