AntipaperLabs / impact

Impact CMS for Meteor.js
2 stars 1 forks source link

Client / Server redundancy in module loading #59

Open subhog opened 11 years ago

subhog commented 11 years ago

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.