sample-piral 0.15.0-beta.4472 → 0.15.0-beta.4512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8487,6 +8487,15 @@ function installPiralDebug(options) {
8487
8487
  var eventDispatcher = document.body.dispatchEvent;
8488
8488
  var systemResolve = System.constructor.prototype.resolve;
8489
8489
  var depMap = {};
8490
+ var subDeps = {};
8491
+
8492
+ var findAncestor = function findAncestor(parent) {
8493
+ while (subDeps[parent]) {
8494
+ parent = subDeps[parent];
8495
+ }
8496
+
8497
+ return parent;
8498
+ };
8490
8499
 
8491
8500
  System.constructor.prototype.resolve = function () {
8492
8501
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -8497,10 +8506,18 @@ function installPiralDebug(options) {
8497
8506
  parent = args[1];
8498
8507
  var result = systemResolve.call.apply(systemResolve, [this].concat(args));
8499
8508
 
8500
- if (parent) {
8501
- var deps = depMap[parent] || {};
8509
+ if (!parent) {
8510
+ return result;
8511
+ }
8512
+
8513
+ var ancestor = findAncestor(parent);
8514
+
8515
+ if (url.startsWith('./')) {
8516
+ subDeps[result] = ancestor;
8517
+ } else {
8518
+ var deps = depMap[ancestor] || {};
8502
8519
  deps[url] = result;
8503
- depMap[parent] = deps;
8520
+ depMap[ancestor] = deps;
8504
8521
  }
8505
8522
 
8506
8523
  return result;
@@ -8510,11 +8527,11 @@ function installPiralDebug(options) {
8510
8527
  debug: debugApiVersion,
8511
8528
  instance: {
8512
8529
  name: "sample-piral",
8513
- version: "0.15.0-beta.4472",
8530
+ version: "0.15.0-beta.4512",
8514
8531
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
8515
8532
  },
8516
8533
  build: {
8517
- date: "2022-07-25T23:16:37.436Z",
8534
+ date: "2022-07-29T23:06:05.480Z",
8518
8535
  cli: "0.14.29",
8519
8536
  compat: "0.14"
8520
8537
  }
@@ -66234,4 +66251,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
66234
66251
 
66235
66252
  /******/ })()
66236
66253
  ;
66237
- //# sourceMappingURL=index.f58779.js.map
66254
+ //# sourceMappingURL=index.c2c936.js.map