seer-dynamic-component
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -17,3 +17,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
@@ -20,0 +20,0 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } |
@@ -30,3 +30,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
config.components.forEach(function (item) { | ||
window.seerConfig.components.push(_objectSpread({}, item, { | ||
window.seerConfig.components.push(_objectSpread(_objectSpread({}, item), {}, { | ||
module: module | ||
@@ -89,3 +89,9 @@ })); | ||
delete window["default"]; | ||
window.seerConfig[key][module] = res["default"]; | ||
if (res && res["default"] && res["default"]["default"]) { | ||
window.seerConfig[key][module] = res["default"]["default"]; | ||
} else { | ||
window.seerConfig[key][module] = res["default"]; | ||
} | ||
var comp = window.seerConfig[key][module][tranCompId]; | ||
@@ -92,0 +98,0 @@ resolve(comp); |
{ | ||
"name": "seer-dynamic-component", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "", | ||
@@ -25,2 +25,2 @@ "main": "lib/index.js", | ||
} | ||
} | ||
} |
15993
273