Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

filterComponents only works with capitalized files (Button.tsx, etc) #779

Closed
wants to merge 1 commit into from

Conversation

lesha1201
Copy link
Contributor

@lesha1201 lesha1201 commented Apr 9, 2019

Description

filterComponents only works with capitalized files (Button.tsx, etc). But a lot of people use seperate folder and index.* for their components. If current behaviour is expected then I think it should be in documentation (I haven't found in Project configuration section)

P.S. it should be in documentation any way

@pedronauck
Copy link
Member

pedronauck commented Apr 10, 2019

This can be fixed just by changing the regexp to this: /\/[A-Z]\w*(\/index)?\.(js|jsx|ts|tsx)$/.
I already did it, will be launched with the next release ✌️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants