mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +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()) {
|
if (stat.isDirectory()) {
|
||||||
createRoutesFromDirectory(startFrom, filePath, router)
|
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("/")
|
let splitedFilePath = filePath.split("/")
|
||||||
|
|
||||||
// slice the startFrom path
|
// slice the startFrom path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user