初始化
This commit is contained in:
20
uni_modules/UniDevTools/node_modules/systemjs/dist/extras/use-default.js
generated
vendored
Normal file
20
uni_modules/UniDevTools/node_modules/systemjs/dist/extras/use-default.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
(function () {
|
||||
|
||||
/*
|
||||
* Interop for AMD modules to return the direct AMD binding instead of a
|
||||
* `{ default: amdModule }` object from `System.import`
|
||||
*
|
||||
* Note: This extra is deprecated and will be removed in the next major.
|
||||
*/
|
||||
(function (global) {
|
||||
var systemJSPrototype = global.System.constructor.prototype;
|
||||
var originalImport = systemJSPrototype.import;
|
||||
|
||||
systemJSPrototype.import = function () {
|
||||
return originalImport.apply(this, arguments).then(function (ns) {
|
||||
return ns.__useDefault ? ns.default : ns;
|
||||
});
|
||||
};
|
||||
})(typeof self !== 'undefined' ? self : global);
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user