I have this:
-main.js
-routeDir
-subfolder1
-index.js
-subfolder2
-index.js
...
-subfolderN
-index.js
the number of subfolders
change according on some condition.
is there a way to import all index.js
dynamically in my code in main.js
?