mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
24 lines
495 B
JavaScript
24 lines
495 B
JavaScript
|
|
exports.locate = function(load) {
|
|
return {
|
|
then: function(resolve, reject) {
|
|
setTimeout(function() {
|
|
resolve('custom fetch');
|
|
}, 20);
|
|
}
|
|
};
|
|
}
|
|
|
|
exports.fetch = function(load) {
|
|
return {
|
|
then: function(resolve, reject) {
|
|
setTimeout(function() {
|
|
resolve(load.address);
|
|
}, 20);
|
|
}
|
|
}
|
|
}
|
|
|
|
exports.translate = function(load) {
|
|
return '(typeof window != "undefined" ? window : global).q = "' + load.source + ':' + load.name + '";';
|
|
} |