in lib/Container.js [88:116]
value: function resolve(key) {
var _this = this;
return new Promise(function (resolve, reject) {
var registration = _this._registrations[key];
if (!registration || !registration.operator) {
reject(new Error('Cannot resolve registration.'));
return null;
}
registration.operator().then(function (o) {
// Handle any esModule's with default exports
// This helps developers write cleaner container code otherwise
// they will need to wrap `import()`'s in Promises that return the default..
// https://github.com/webpack/webpack.js.org/pull/213
var component = o;
if (o.__esModule && o.default) {
component = o.default;
}
resolve({
component: component,
meta: registration.meta
});
return component;
}).catch(reject);
});
}