On use, it may be different matter: what are your expectations? ...and what's the implementation of the module (Does it create something else than just executable code (and shared (config) object)?
Inverting the require tree could simplify your work... Common is requested first. Each Specific registers with the Common. Then you ask the Common part to create a Specific for you, like a factory.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
...it all depends...
On uploading: no, it's uploaded only once...
On use, it may be different matter: what are your expectations? ...and what's the implementation of the module (Does it create something else than just executable code (and shared (config) object)?
Inverting the require tree could simplify your work... Common is requested first. Each Specific registers with the Common. Then you ask the Common part to create a Specific for you, like a factory.
More to come...