Some code for module loading will be the same on both sides. Refactor it accordingly.
There's a problem with current prefix scheme, we cannot be sure that the order of modules will be the same on both sides (we cannot, server side modules will be loaded during startup). Perhaps use _id instead? Or disallow duplicate module names?
After all, the 'name' used for prefixing does not necessarily have to be the same as the 'name' used for path creation.
Some code for module loading will be the same on both sides. Refactor it accordingly.
There's a problem with current prefix scheme, we cannot be sure that the order of modules will be the same on both sides (we cannot, server side modules will be loaded during startup). Perhaps use _id instead? Or disallow duplicate module names?
After all, the 'name' used for prefixing does not necessarily have to be the same as the 'name' used for path creation.