25 lines
627 B
TypeScript
25 lines
627 B
TypeScript
//// [modulePrologueUmd.ts]
|
|
"use strict";
|
|
|
|
export class Foo {}
|
|
|
|
//// [modulePrologueUmd.js]
|
|
(function (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(["require", "exports"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
}
|
|
return Foo;
|
|
}());
|
|
exports.Foo = Foo;
|
|
});
|