Reputation: 89
is it possible to config typescript compiler to compile exported class with define module id?
typescript
export class Foo {...}
this is what tsc output (module: "amd")
define(["require", "exports"], function (require, exports) {...}
expected
define("Foo", ["require", "exports"], function (require, exports) {...}
Thank you very much
Upvotes: 5
Views: 779
Reputation: 275799
expected
define("Foo")
Use the super secret /// <amd-module name="Foo"/>
But I would advise against this as it will make your code needlessly amd specific.
Upvotes: 4