I'm using AMD
-like function in my project, but all js files are concatenated into one (with grunt-contrib-concat
).
I want Q to be concatenated as well. The problem is I can't declare Q as dependency in my other modules, cause it declares itself as anonymous one.
define('mymodule', ['q'], function (Promise) {
return Promise;
});
What are possible solutions? I actually need only files to be concatenated, AMD may be changed to e.g. any other loader.