20 lines
614 B
TypeScript
20 lines
614 B
TypeScript
//// [umdDependencyCommentName1.ts]
|
|
///<amd-dependency path='bar' name='b'/>
|
|
|
|
import m1 = require("m2")
|
|
m1.f();
|
|
|
|
|
|
//// [umdDependencyCommentName1.js]
|
|
///<amd-dependency path='bar' name='b'/>
|
|
(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", "bar", "m2"], function (require, exports, b) {
|
|
var m1 = require("m2");
|
|
m1.f();
|
|
});
|