chayns-api 1.1.0-28 → 1.1.0-29

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.
@@ -49,7 +49,9 @@ const loadModule = async (scope, module, url, preventSingleton = false) => {
49
49
  }
50
50
  if (!(module in moduleMap[scope])) {
51
51
  const path = `${scope}/${module.replace(/^\.\//, '')}`;
52
- const promise = (0, _runtime.loadRemote)(path);
52
+ const promise = (0, _runtime.loadRemote)(path, {
53
+ from: 'runtime'
54
+ });
53
55
  promise.catch(e => {
54
56
  console.error("[chayns-api] Failed to load module", scope, url, e);
55
57
  // causes registerRemote with force = true on next attempt to load the component which tries to load the component again
@@ -43,7 +43,9 @@ export const loadModule = async function (scope, module, url) {
43
43
  }
44
44
  if (!(module in moduleMap[scope])) {
45
45
  const path = `${scope}/${module.replace(/^\.\//, '')}`;
46
- const promise = loadRemote(path);
46
+ const promise = loadRemote(path, {
47
+ from: 'runtime'
48
+ });
47
49
  promise.catch(e => {
48
50
  console.error("[chayns-api] Failed to load module", scope, url, e);
49
51
  // causes registerRemote with force = true on next attempt to load the component which tries to load the component again
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.1.0-28",
3
+ "version": "1.1.0-29",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",