@jsenv/core 24.4.1 → 24.4.3
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.
- package/dist/browser_runtime/asset-manifest.json +3 -0
- package/dist/browser_runtime/{browser_runtime-fbd309a1.js → browser_runtime-015d0fc5.js} +94 -1
- package/dist/browser_runtime/{browser_runtime-fbd309a1.js.map → browser_runtime-015d0fc5.js.map} +11 -3
- package/dist/build_manifest.js +5 -5
- package/dist/compile_proxy/asset-manifest.json +4 -0
- package/dist/compile_proxy/assets/{s.js-749702e8.map → s.js-55849eca.map} +14 -4
- package/dist/compile_proxy/{compile_proxy-405777e6.html → compile_proxy-2eabd1f7.html} +99 -4
- package/dist/compile_proxy/{compile_proxy.html__inline__20-39c0801c.js.map → compile_proxy.html__inline__20-672ba17c.js.map} +0 -0
- package/dist/event_source_client/asset-manifest.json +3 -0
- package/dist/redirector/asset-manifest.json +4 -0
- package/dist/{toolbar/assets/s.js-749702e8.map → redirector/assets/s.js-55849eca.map} +14 -4
- package/dist/redirector/{redirector-237cd168.html → redirector-3029c4d3.html} +99 -4
- package/dist/redirector/{redirector.html__inline__15-33acb0b9.js.map → redirector.html__inline__15-4d453af0.js.map} +0 -0
- package/dist/toolbar/asset-manifest.json +13 -0
- package/dist/{redirector/assets/s.js-749702e8.map → toolbar/assets/s.js-55849eca.map} +14 -4
- package/dist/toolbar/{toolbar-29e91dcd.html → toolbar-40bcd3a0.html} +94 -1
- package/dist/toolbar_injector/asset-manifest.json +4 -0
- package/dist/toolbar_injector/{toolbar_injector-0af91b43.js → toolbar_injector-0a9d5d4c.js} +2 -2
- package/dist/toolbar_injector/{toolbar_injector-0af91b43.js.map → toolbar_injector-0a9d5d4c.js.map} +2 -2
- package/package.json +10 -18
- package/src/internal/building/buildUsingRollup.js +2 -2
- package/src/internal/building/createJsenvRollupPlugin.js +67 -41
- package/src/internal/building/css/parseCssRessource.js +4 -1
- package/src/internal/building/html/parseHtmlRessource.js +16 -3
- package/src/internal/building/js/parseJsRessource.js +2 -0
- package/src/internal/building/ressource_builder.js +27 -37
- package/src/internal/building/ressource_builder_util.js +10 -137
- package/src/internal/building/svg/parseSvgRessource.js +2 -0
- package/src/internal/building/url_loader.js +3 -1
- package/src/internal/building/webmanifest/parseWebmanifestRessource.js +2 -1
- package/src/internal/runtime/s.js +83 -1
- package/dist/browser_system/browser_system-29eda202.js +0 -5160
- package/dist/browser_system/browser_system-29eda202.js.map +0 -1065
|
@@ -4255,6 +4255,99 @@
|
|
|
4255
4255
|
};
|
|
4256
4256
|
})();
|
|
4257
4257
|
|
|
4258
|
+
(function () {
|
|
4259
|
+
/*
|
|
4260
|
+
* SystemJS named register extension
|
|
4261
|
+
* Supports System.register('name', [..deps..], function (_export, _context) { ... })
|
|
4262
|
+
*
|
|
4263
|
+
* Names are written to the registry as-is
|
|
4264
|
+
* System.register('x', ...) can be imported as System.import('x')
|
|
4265
|
+
*/
|
|
4266
|
+
(function (global) {
|
|
4267
|
+
var System = global.System;
|
|
4268
|
+
setRegisterRegistry(System);
|
|
4269
|
+
var systemJSPrototype = System.constructor.prototype;
|
|
4270
|
+
var constructor = System.constructor;
|
|
4271
|
+
|
|
4272
|
+
var SystemJS = function SystemJS() {
|
|
4273
|
+
constructor.call(this);
|
|
4274
|
+
setRegisterRegistry(this);
|
|
4275
|
+
};
|
|
4276
|
+
|
|
4277
|
+
SystemJS.prototype = systemJSPrototype;
|
|
4278
|
+
System.constructor = SystemJS;
|
|
4279
|
+
var firstNamedDefine, firstName;
|
|
4280
|
+
|
|
4281
|
+
function setRegisterRegistry(systemInstance) {
|
|
4282
|
+
systemInstance.registerRegistry = Object.create(null);
|
|
4283
|
+
systemInstance.namedRegisterAliases = Object.create(null);
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
var register = systemJSPrototype.register;
|
|
4287
|
+
|
|
4288
|
+
systemJSPrototype.register = function (name, deps, declare) {
|
|
4289
|
+
if (typeof name !== 'string') return register.apply(this, arguments);
|
|
4290
|
+
var define = [deps, declare];
|
|
4291
|
+
this.registerRegistry[name] = define;
|
|
4292
|
+
|
|
4293
|
+
if (!firstNamedDefine) {
|
|
4294
|
+
firstNamedDefine = define;
|
|
4295
|
+
firstName = name;
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
Promise.resolve().then(function () {
|
|
4299
|
+
firstNamedDefine = null;
|
|
4300
|
+
firstName = null;
|
|
4301
|
+
});
|
|
4302
|
+
return register.apply(this, [deps, declare]);
|
|
4303
|
+
};
|
|
4304
|
+
|
|
4305
|
+
var resolve = systemJSPrototype.resolve;
|
|
4306
|
+
|
|
4307
|
+
systemJSPrototype.resolve = function (id, parentURL) {
|
|
4308
|
+
try {
|
|
4309
|
+
// Prefer import map (or other existing) resolution over the registerRegistry
|
|
4310
|
+
return resolve.call(this, id, parentURL);
|
|
4311
|
+
} catch (err) {
|
|
4312
|
+
if (id in this.registerRegistry) {
|
|
4313
|
+
return this.namedRegisterAliases[id] || id;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
throw err;
|
|
4317
|
+
}
|
|
4318
|
+
};
|
|
4319
|
+
|
|
4320
|
+
var instantiate = systemJSPrototype.instantiate;
|
|
4321
|
+
|
|
4322
|
+
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
4323
|
+
var result = this.registerRegistry[url];
|
|
4324
|
+
|
|
4325
|
+
if (result) {
|
|
4326
|
+
this.registerRegistry[url] = null;
|
|
4327
|
+
return result;
|
|
4328
|
+
} else {
|
|
4329
|
+
return instantiate.call(this, url, firstParentUrl);
|
|
4330
|
+
}
|
|
4331
|
+
};
|
|
4332
|
+
|
|
4333
|
+
var getRegister = systemJSPrototype.getRegister;
|
|
4334
|
+
|
|
4335
|
+
systemJSPrototype.getRegister = function (url) {
|
|
4336
|
+
// Calling getRegister() because other extras need to know it was called so they can perform side effects
|
|
4337
|
+
var register = getRegister.call(this, url);
|
|
4338
|
+
|
|
4339
|
+
if (firstName && url) {
|
|
4340
|
+
this.namedRegisterAliases[firstName] = url;
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
var result = firstNamedDefine || register;
|
|
4344
|
+
firstNamedDefine = null;
|
|
4345
|
+
firstName = null;
|
|
4346
|
+
return result;
|
|
4347
|
+
};
|
|
4348
|
+
})(typeof self !== 'undefined' ? self : global);
|
|
4349
|
+
})();
|
|
4350
|
+
|
|
4258
4351
|
/* eslint-env browser */
|
|
4259
4352
|
|
|
4260
4353
|
function _await$2(value, then, direct) {
|
|
@@ -5134,4 +5227,4 @@
|
|
|
5134
5227
|
|
|
5135
5228
|
})();
|
|
5136
5229
|
|
|
5137
|
-
//# sourceMappingURL=browser_runtime-
|
|
5230
|
+
//# sourceMappingURL=browser_runtime-015d0fc5.js.map
|