Юра Панарин
Юра Панарин

Reputation: 849

Typescript compile file

i compile my class:

export class Test implements baseTest 

Compile file have first string:

define(Object, ......,);

How i can compile withor define only like this:

var Test = (function(){..})();

Upvotes: 0

Views: 57

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 220964

Remove the export keyword. You're trying to make a module when it seems you want global code.

Upvotes: 1

Related Questions