...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...
© Espruino, powered by microcosm.
Report a problem