No, it will not work for this issue.
What about this structure:
```
modules/
└ base
    ├── module
│       ├── file2.js
│       ├── file3.js
│       └── file.js
└ module2
    └── file4.js
```