-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storyshots: Fix support for jsx/tsx config files #9834
Storyshots: Fix support for jsx/tsx config files #9834
Conversation
.flatMap(filename => supportedExtensions.map(ext => `${filename}.${ext}`)) | ||
.map(filename => path.join(configDir, filename)); | ||
|
||
return allFilenames.find(isFile) || false; | ||
}; | ||
|
||
const getMainFile = (configDir: string): string | false => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: should the same file extension support be implemented for main.js
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please! 🙏
999412e
to
d1e5349
Compare
d1e5349
to
2fe47b6
Compare
Awesome, looks great to me! |
Great job @davidgoli. Clean!!! ✨ |
Storyshots: Fix support for jsx/tsx config files
Issue: #9771
What I did
Implemented support for *.jsx and *.tsx preview files.
How to test