lib/index.js
function createJsModule(source) {
    var compilerOptions = {
        compilerOptions: {
            target: ts.ScriptTarget.ES5,
            module: ts.ModuleKind.CommonJS,
            alwaysStrict: false
        }
    };
    var transpiled = ts.transpileModule(source, compilerOptions);
    return transpiled.outputText;
}
function createJsModule(source) {
    var compilerOptions = {
        compilerOptions: {
            target: ts.ScriptTarget.ES5,
            module: ts.ModuleKind.CommonJS,
            alwaysStrict: false
        }
    };
    var transpiled = ts.transpileModule(source, compilerOptions);
    return transpiled.outputText;
}
function createJsModule ( source ) { var compilerOptions = { compilerOptions : { target : ts . ScriptTarget . ES5 , module : ts . ModuleKind . CommonJS , alwaysStrict : false } } ; var transpiled = ts . transpileModule ( source , compilerOptions ) ; return transpiled . outputText ; }
Creates commonjs module for javascript
@param {string} source assemblyscript source
@returns {string} module string
Creates commonjs module for javascript