amdrequire
amdrequire copied to clipboard
Defining paths in config
It seems that one use-case (fairly common I would say) does not work. If you configure amdrequire with a path that is a common entry point to multiple modules, I don't see how this would work (actually doesn't). Consider this config option: require.config({ basePath: __dirname + '/my/real/base', paths: { 'common': 'libs/my/v1.0.0/debug' } }); then my require call would be something like this: require(['common/js1', 'common/js2'], function(j1, j2){ .... } }); My real dir structure looks like this: __dirname/my/real/base/libs/my/v1.0.0/debug |--js1.js |--js2.js
How would you load js1 and js2?