mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
support for .jsx
& .tsx
files
This commit is contained in:
parent
4a2820597c
commit
3ab7b24d7d
@ -10,7 +10,7 @@ function createRoutesFromDirectory(startFrom, directoryPath, router) {
|
||||
|
||||
if (stat.isDirectory()) {
|
||||
createRoutesFromDirectory(startFrom, filePath, router)
|
||||
} else if (file.endsWith(".js")) {
|
||||
} else if (file.endsWith(".js") || file.endsWith(".jsx") || file.endsWith(".ts") || file.endsWith(".tsx")) {
|
||||
let splitedFilePath = filePath.split("/")
|
||||
|
||||
// slice the startFrom path
|
||||
|
Loading…
x
Reference in New Issue
Block a user