sample-cross-fx 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.
@@ -139948,15 +139948,32 @@ function installPiralDebug(options) {
139948
139948
  const eventDispatcher = document.body.dispatchEvent;
139949
139949
  const systemResolve = System.constructor.prototype.resolve;
139950
139950
  const depMap = {};
139951
+ const subDeps = {};
139952
+
139953
+ const findAncestor = parent => {
139954
+ while (subDeps[parent]) {
139955
+ parent = subDeps[parent];
139956
+ }
139957
+
139958
+ return parent;
139959
+ };
139951
139960
 
139952
139961
  System.constructor.prototype.resolve = function (...args) {
139953
139962
  const [url, parent] = args;
139954
139963
  const result = systemResolve.call(this, ...args);
139955
139964
 
139956
- if (parent) {
139957
- const deps = depMap[parent] || {};
139965
+ if (!parent) {
139966
+ return result;
139967
+ }
139968
+
139969
+ const ancestor = findAncestor(parent);
139970
+
139971
+ if (url.startsWith('./')) {
139972
+ subDeps[result] = ancestor;
139973
+ } else {
139974
+ const deps = depMap[ancestor] || {};
139958
139975
  deps[url] = result;
139959
- depMap[parent] = deps;
139976
+ depMap[ancestor] = deps;
139960
139977
  }
139961
139978
 
139962
139979
  return result;
@@ -139966,11 +139983,11 @@ function installPiralDebug(options) {
139966
139983
  debug: debugApiVersion,
139967
139984
  instance: {
139968
139985
  name: "sample-cross-fx",
139969
- version: "0.15.0-beta.4472",
139986
+ version: "0.15.0-beta.4512",
139970
139987
  dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
139971
139988
  },
139972
139989
  build: {
139973
- date: "2022-07-25T23:16:55.496Z",
139990
+ date: "2022-07-29T23:09:02.997Z",
139974
139991
  cli: "0.14.29",
139975
139992
  compat: "0.14"
139976
139993
  }
@@ -268214,4 +268231,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(piral
268214
268231
 
268215
268232
  /******/ })()
268216
268233
  ;
268217
- //# sourceMappingURL=index.240a55.js.map
268234
+ //# sourceMappingURL=index.684d4f.js.map