Skip to content

Instantly share code, notes, and snippets.

@diverted247
Last active October 30, 2015 20:26
Show Gist options
  • Save diverted247/c0016ee6338dcdf20a2a to your computer and use it in GitHub Desktop.
Save diverted247/c0016ee6338dcdf20a2a to your computer and use it in GitHub Desktop.
ts.ModuleKind.*
import {f} from "foo"
export var x = f()
define("myModule2", ["require", "exports", "foo"], function (require, exports, foo_1) {
exports.x = foo_1.f();
});
var foo_1 = require("foo");
exports.x = foo_1.f();
System.register("myModule2", ["foo"], function(exports_1) {
var foo_1;
var x;
return {
setters:[
function (foo_1_1) {
foo_1 = foo_1_1;
}],
execute: function() {
exports_1("x", x = foo_1.f());
}
}
});
(function (deps, factory) {
if (typeof module === \'object\' && typeof module.exports === \'object\') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === \'function\' && define.amd) {
define(deps, factory);
}
})(["require", "exports", "foo"], function (require, exports) {
var foo_1 = require("foo");
exports.x = foo_1.f();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment