In AMD (as implemented in requirejs) one can defined modules to be included as dependencies, eg:
define(['require','exports'], function(require, exports) {
var externalDep = require('path/to/depModule');
// Use the module somewhere.
});
I have tried the --module amd and it outputs correctly an AMD module usable by requirejs.
Is it possible to define dependencies inside the source of TypeScript source file that translates to something like the example above?