22 lines
586 B
TypeScript
22 lines
586 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";
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
}
|
|
return Foo;
|
|
})();
|
|
exports.Foo = Foo;
|
|
});
|