@jsenv/core 24.4.4 → 24.4.5

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "browser_runtime.js": "browser_runtime-75fe4f45.js"
2
+ "browser_runtime.js": "browser_runtime-c7288751.js"
3
3
  }
@@ -4134,7 +4134,7 @@
4134
4134
  var lastAutoImportUrl;
4135
4135
  lastAutoImportDeps = deps;
4136
4136
 
4137
- if (lastScript) {
4137
+ if (lastScript && lastScript.src) {
4138
4138
  lastAutoImportUrl = lastScript.src;
4139
4139
  } else if (autoUrl) {
4140
4140
  lastAutoImportUrl = autoUrl;
@@ -4266,9 +4266,11 @@
4266
4266
  System.register = function (name, deps, declare) {
4267
4267
  if (typeof name !== 'string') return register.apply(this, arguments);
4268
4268
  var define = [deps, declare];
4269
- var url = System.resolve("./".concat(name));
4270
- registerRegistry[url] = define;
4271
- return register.call(this, deps, declare, url);
4269
+ return System.prepareImport().then(function () {
4270
+ var url = System.resolve("./".concat(name));
4271
+ registerRegistry[url] = define;
4272
+ return register.call(System, deps, declare, url);
4273
+ });
4272
4274
  };
4273
4275
 
4274
4276
  var instantiate = System.instantiate;
@@ -5173,4 +5175,4 @@
5173
5175
 
5174
5176
  })();
5175
5177
 
5176
- //# sourceMappingURL=browser_runtime-75fe4f45.js.map
5178
+ //# sourceMappingURL=browser_runtime-c7288751.js.map