Is there a way to create non-anonymous AMD Modules in Typescript. When I define a module like this:
export module Bootstrapper {
export function run() {
var i = 0;
}
}
the generate code is:
define(["require", "exports"], function(require, exports) {
(function (Bootstrapper) {
function run() {
var i = 0;
}
Bootstrapper.run = run;
})(exports.Bootstrapper || (exports.Bootstrapper = {}));
})
How can I define a non-anomymous module like this:
define('bootstrapper', ["require", "exports"], function(require, exports) {
(function (Bootstrapper) {
function run() {
var i = 0;
}
Bootstrapper.run = run;
})(exports.Bootstrapper || (exports.Bootstrapper = {}));
})
As you can see in the file emitter.ts at line 1202 (make a search for
" var dependencyList = ") there is no implementation for it.You can open an issue on codeplex about it.