mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
20 lines
421 B
JavaScript
20 lines
421 B
JavaScript
/*
|
|
* Script-only addition used for production loader
|
|
*
|
|
*/
|
|
hookConstructor(function(constructor) {
|
|
return function() {
|
|
constructor.apply(this, arguments);
|
|
|
|
// prepare amd define
|
|
if (this.has('@@amd-helpers'))
|
|
this.get('@@amd-helpers').createDefine();
|
|
};
|
|
});
|
|
|
|
hook('fetch', function(fetch) {
|
|
return function(load) {
|
|
load.metadata.scriptLoad = true;
|
|
return fetch.call(this, load);
|
|
};
|
|
}); |