KT-3008 Add support of module kind to Ant task. Repair Ant JS tests
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
(function(global) {
|
||||
var modules = {};
|
||||
modules.kotlin = kotlin;
|
||||
|
||||
function define(name, dependencies, body) {
|
||||
var resolvedDependencies = [];
|
||||
for (var i = 0; i < dependencies.length; ++i) {
|
||||
resolvedDependencies[i] = modules[dependencies[i]];
|
||||
}
|
||||
modules[name] = body.apply(body, resolvedDependencies);
|
||||
}
|
||||
define.amd = {};
|
||||
|
||||
global.define = define;
|
||||
})(this);
|
||||
Reference in New Issue
Block a user