diff options
Diffstat (limited to 'thirdparty/systemjs/lib/scriptOnly.js')
-rw-r--r-- | thirdparty/systemjs/lib/scriptOnly.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/thirdparty/systemjs/lib/scriptOnly.js b/thirdparty/systemjs/lib/scriptOnly.js new file mode 100644 index 000000000..f5654958b --- /dev/null +++ b/thirdparty/systemjs/lib/scriptOnly.js @@ -0,0 +1,17 @@ +/* + * Script-only addition used for production loader + * + */ +hookConstructor(function(constructor) { + return function() { + constructor.apply(this, arguments); + __global.define = this.amdDefine; + }; +}); + +hook('fetch', function(fetch) { + return function(load) { + load.metadata.scriptLoad = true; + return fetch.call(this, load); + }; +});
\ No newline at end of file |