mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
17 lines
438 B
JavaScript
17 lines
438 B
JavaScript
var parseConfig = function(obj) {
|
|
obj.baseURL = obj.baseUrl;
|
|
return obj;
|
|
}
|
|
var require = requirejs = function(names, callback, errback, lastArg) {
|
|
if (typeof names == 'object' && !(names instanceof Array)) {
|
|
jspm.config(parseConfig(names));
|
|
jspm.import(callback, errback, lastArg);
|
|
return;
|
|
}
|
|
if (names)
|
|
jspm.import(names, callback, errback);
|
|
}
|
|
require.config = function(obj) {
|
|
jspm.config(parseConfig(obj));
|
|
}
|