@jsenv/core 24.6.3 → 25.0.0-alpha.1
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 +2 -1
- package/dist/browser_runtime/{browser_runtime-c7288751.js → browser_runtime_91c5a3b8.js} +213 -109
- package/dist/browser_runtime/browser_runtime_91c5a3b8.js.map +1089 -0
- package/dist/build_manifest.js +6 -6
- package/dist/compile_proxy/asset-manifest.json +2 -1
- package/dist/compile_proxy/{compile_proxy-28148b58.html → compile_proxy_7ad5faa6.html} +133 -40
- package/dist/compile_proxy/{compile_proxy.html__inline__20-4887fb1d.js.map → compile_proxy_e3b0c442_809f35f7.js.map} +7 -7
- package/dist/event_source_client/asset-manifest.json +2 -1
- package/dist/event_source_client/{event_source_client-9f14c8b9.js → event_source_client_620fbc2c.js} +6 -12
- package/dist/event_source_client/{event_source_client-9f14c8b9.js.map → event_source_client_620fbc2c.js.map} +2 -2
- package/dist/redirector/asset-manifest.json +2 -1
- package/dist/redirector/{redirector.html__inline__15-19e529b9.js.map → redirector_e3b0c442_e391410e.js.map} +7 -7
- package/dist/redirector/{redirector-3c05dbb2.html → redirector_eb92e8a7.html} +133 -40
- package/dist/toolbar/asset-manifest.json +11 -10
- package/dist/toolbar/assets/{compilation.css-209d68b4.map → compilation.css_e37c747b.map} +1 -1
- package/dist/toolbar/assets/{eventsource.css-38cd0a36.map → eventsource.css_c0c71e7b.map} +1 -1
- package/dist/toolbar/assets/{execution.css-0ebe522f.map → execution.css_f3377c10.map} +1 -1
- package/dist/toolbar/assets/{focus.css-3f9c156d.map → focus.css_896f3e45.map} +1 -1
- package/dist/toolbar/assets/{light-theme.css-78b19a80.map → light-theme.css_72a60fa3.map} +1 -1
- package/dist/toolbar/assets/{overflow-menu.css-d9688a1c.map → overflow-menu.css_2859d519.map} +1 -1
- package/dist/toolbar/assets/{settings.css-2b81b245.map → settings.css_61548139.map} +1 -1
- package/dist/toolbar/assets/{toolbar.main.css-846920e9.map → toolbar.main.css_269d7ce2.map} +9 -9
- package/dist/toolbar/assets/{tooltip.css-03395ee6.map → tooltip.css_a94a8bdd.map} +1 -1
- package/dist/toolbar/{toolbar.main-eb8acf83.js.map → toolbar.main2_6c1b3d82.js.map} +9 -9
- package/dist/toolbar/{toolbar-bab473ea.html → toolbar_04ba410c.html} +155 -62
- package/dist/toolbar_injector/asset-manifest.json +3 -2
- package/dist/toolbar_injector/assets/{jsenv-logo-188b9ca6.svg → jsenv-logo_188b9ca6.svg} +0 -0
- package/dist/toolbar_injector/{toolbar_injector-5e32f96a.js → toolbar_injector_4a48bc53.js} +25 -26
- package/dist/toolbar_injector/{toolbar_injector-5e32f96a.js.map → toolbar_injector_4a48bc53.js.map} +4 -5
- package/package.json +6 -5
- package/readme.md +34 -111
- package/src/buildProject.js +45 -32
- package/src/dev_server.js +13 -3
- package/src/execute.js +7 -1
- package/src/executeTestPlan.js +6 -0
- package/src/internal/browser_feature_detection/browser_feature_detection.js +18 -25
- package/src/internal/browser_runtime/browser_runtime.js +2 -2
- package/src/internal/browser_runtime/createBrowserRuntime.js +1 -1
- package/src/internal/browser_runtime/displayErrorInDocument.js +2 -0
- package/src/internal/browser_runtime/displayErrorNotification.js +1 -1
- package/src/internal/building/buildUsingRollup.js +12 -17
- package/src/internal/building/build_logs.js +2 -2
- package/src/internal/building/build_stats.js +11 -1
- package/src/internal/building/html/parseHtmlRessource.js +2 -26
- package/src/internal/building/js/parseJsRessource.js +3 -2
- package/src/internal/building/json_module.js +11 -0
- package/src/internal/building/parseRessource.js +1 -1
- package/src/internal/building/ressource_builder.js +210 -216
- package/src/internal/building/rollup_plugin_jsenv.js +536 -371
- package/src/internal/building/url_loader.js +8 -142
- package/src/internal/building/url_versioning.js +220 -0
- package/src/internal/compiling/compileHtml.js +8 -1
- package/src/internal/compiling/createCompiledFileService.js +32 -44
- package/src/internal/compiling/html_source_file_service.js +66 -51
- package/src/internal/compiling/js-compilation-service/babel_plugin_systemjs_prepend.js +23 -0
- package/src/internal/compiling/js-compilation-service/jsenvTransform.js +21 -63
- package/src/internal/compiling/js-compilation-service/transformJs.js +4 -4
- package/src/internal/compiling/jsenvCompilerForHtml.js +47 -48
- package/src/internal/compiling/jsenvCompilerForImportmap.js +15 -76
- package/src/internal/compiling/jsenvCompilerForJavaScript.js +11 -2
- package/src/internal/compiling/startCompileServer.js +31 -7
- package/src/internal/dev_server/toolbar/compilation/toolbar.compilation.js +9 -9
- package/src/internal/executing/executePlan.js +6 -0
- package/src/internal/generateGroupMap/{jsenvBabelPluginCompatMap.js → babel_plugins_compatibility.js} +0 -0
- package/src/internal/generateGroupMap/{featuresCompatMap.js → features_compatibility.js} +9 -1
- package/src/internal/generateGroupMap/generateGroupMap.js +6 -35
- package/src/internal/generateGroupMap/one_runtime_compat.js +9 -12
- package/src/internal/generateGroupMap/runtime_compat.js +10 -15
- package/src/internal/generateGroupMap/runtime_compat_composition.js +2 -2
- package/src/internal/generateGroupMap/shake_babel_plugin_map.js +21 -0
- package/src/internal/import-resolution/importmap_default.js +52 -0
- package/src/internal/node_feature_detection/node_feature_detection.js +25 -19
- package/src/internal/runtime/s.js +101 -6
- package/src/internal/unevalException.js +1 -1
- package/src/jsenvServiceWorkerFinalizer.js +10 -9
- package/dist/browser_runtime/browser_runtime-c7288751.js.map +0 -1069
- package/src/internal/building/asset_url_versioning.js +0 -50
- package/src/internal/building/rollup_build_sourcemap.js +0 -54
- package/src/internal/building/url-versioning.js +0 -96
- package/src/internal/compiling/js-compilation-service/findAsyncPluginNameInBabelPluginMap.js +0 -9
- package/src/internal/generateGroupMap/jsenvPluginCompatMap.js +0 -1
- package/src/internal/import-resolution/importmap-default.js +0 -34
- package/src/internal/renderNamePattern.js +0 -6
|
@@ -790,7 +790,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
790
790
|
color: inherit;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
|
-
/*# sourceMappingURL=assets/toolbar.main.
|
|
793
|
+
/*# sourceMappingURL=assets/toolbar.main.css_269d7ce2.map */</style>
|
|
794
794
|
<script id="jsenv_inject_systemjs">/*
|
|
795
795
|
* SJS 6.11.0
|
|
796
796
|
* Minimal SystemJS Build
|
|
@@ -1290,6 +1290,8 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1290
1290
|
|
|
1291
1291
|
var importMapPromise = Promise.resolve();
|
|
1292
1292
|
var importMap = { imports: {}, scopes: {}, depcache: {}, integrity: {} };
|
|
1293
|
+
systemJSPrototype.importMap = importMap;
|
|
1294
|
+
systemJSPrototype.baseUrl = baseUrl;
|
|
1293
1295
|
|
|
1294
1296
|
// Scripts are processed immediately, on the first System.import, and on DOMReady.
|
|
1295
1297
|
// Import map scripts are processed only once (by being marked) and in order for each phase.
|
|
@@ -1345,6 +1347,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1345
1347
|
return fetchPromise;
|
|
1346
1348
|
}).then(function (text) {
|
|
1347
1349
|
extendImportMap(importMap, text, script.src || baseUrl);
|
|
1350
|
+
return importMap
|
|
1348
1351
|
});
|
|
1349
1352
|
}
|
|
1350
1353
|
});
|
|
@@ -1359,6 +1362,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1359
1362
|
}
|
|
1360
1363
|
resolveAndComposeImportMap(newMap, newMapUrl, importMap);
|
|
1361
1364
|
}
|
|
1365
|
+
System.extendImportMap = extendImportMap
|
|
1362
1366
|
|
|
1363
1367
|
/*
|
|
1364
1368
|
* Script instantiation loading
|
|
@@ -1512,23 +1516,33 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1512
1516
|
* Supports loading System.register in workers
|
|
1513
1517
|
*/
|
|
1514
1518
|
|
|
1515
|
-
if (hasSelf && typeof importScripts === 'function')
|
|
1519
|
+
if (hasSelf && typeof importScripts === 'function') {
|
|
1516
1520
|
systemJSPrototype.instantiate = function (url) {
|
|
1517
1521
|
var loader = this;
|
|
1518
|
-
return
|
|
1519
|
-
|
|
1522
|
+
return self.fetch(url, {
|
|
1523
|
+
credentials: 'same-origin',
|
|
1524
|
+
}).then(function (response) {
|
|
1525
|
+
if (!response.ok) {
|
|
1526
|
+
throw Error(errMsg(7, [response.status, response.statusText, url].join(', ') ));
|
|
1527
|
+
}
|
|
1528
|
+
return response.text()
|
|
1529
|
+
}).then(function (source) {
|
|
1530
|
+
if (source.indexOf('//# sourceURL=') < 0) source += '\n//# sourceURL=' + url;
|
|
1531
|
+
(0, eval)(source);
|
|
1520
1532
|
return loader.getRegister(url);
|
|
1521
|
-
})
|
|
1533
|
+
})
|
|
1522
1534
|
};
|
|
1535
|
+
}
|
|
1523
1536
|
|
|
1524
1537
|
}());
|
|
1525
1538
|
|
|
1526
1539
|
(function(){
|
|
1527
1540
|
var envGlobal = typeof self !== 'undefined' ? self : global;
|
|
1528
1541
|
var System = envGlobal.System;
|
|
1529
|
-
var register = System.register;
|
|
1530
|
-
var registerRegistry = Object.create(null)
|
|
1531
1542
|
|
|
1543
|
+
var registerRegistry = Object.create(null)
|
|
1544
|
+
var register = System.register;
|
|
1545
|
+
System.registerRegistry = registerRegistry;
|
|
1532
1546
|
System.register = function (name, deps, declare) {
|
|
1533
1547
|
if (typeof name !== 'string') return register.apply(this, arguments);
|
|
1534
1548
|
var define = [deps, declare];
|
|
@@ -1558,6 +1572,87 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1558
1572
|
var result = registerRegistry[url] || register;
|
|
1559
1573
|
return result;
|
|
1560
1574
|
};
|
|
1575
|
+
}());
|
|
1576
|
+
|
|
1577
|
+
(function () {
|
|
1578
|
+
// worker or service worker
|
|
1579
|
+
if (typeof WorkerGlobalScope === 'function' && self instanceof WorkerGlobalScope) {
|
|
1580
|
+
var importMapFromParentPromise = new Promise((resolve) => {
|
|
1581
|
+
var importmapMessageCallback = function (e) {
|
|
1582
|
+
if (e.data === "__importmap_init__") {
|
|
1583
|
+
self.removeEventListener("message", importmapMessageCallback)
|
|
1584
|
+
e.ports[0].onmessage = (message) => {
|
|
1585
|
+
resolve(message.data)
|
|
1586
|
+
}
|
|
1587
|
+
e.ports[0].postMessage('__importmap_request__')
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
self.addEventListener("message", importmapMessageCallback)
|
|
1591
|
+
})
|
|
1592
|
+
// var prepareImport = System.prepareImport
|
|
1593
|
+
System.prepareImport = function () {
|
|
1594
|
+
return importMapFromParentPromise.then(function (importmap) {
|
|
1595
|
+
System.extendImportMap(System.importMap, JSON.stringify(importmap), System.baseUrl)
|
|
1596
|
+
})
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
// auto import first register
|
|
1600
|
+
var messageEvents = []
|
|
1601
|
+
var messageCallback = (event) => {
|
|
1602
|
+
messageEvents.push(event)
|
|
1603
|
+
}
|
|
1604
|
+
self.addEventListener('message', messageCallback)
|
|
1605
|
+
var register = System.register;
|
|
1606
|
+
System.register = function(deps, declare) {
|
|
1607
|
+
System.register = register;
|
|
1608
|
+
System.registerRegistry[self.location.href] = [deps, declare];
|
|
1609
|
+
System.import(self.location.href).then(() => {
|
|
1610
|
+
self.removeEventListener('message', messageCallback)
|
|
1611
|
+
messageEvents.forEach((messageEvent) => {
|
|
1612
|
+
self.dispatchEvent(messageEvent)
|
|
1613
|
+
})
|
|
1614
|
+
messageEvents = null
|
|
1615
|
+
})
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
else if (typeof window === 'object') {
|
|
1619
|
+
var WorkerConstructor = window.Worker;
|
|
1620
|
+
if (typeof WorkerConstructor === 'function') {
|
|
1621
|
+
window.Worker = function (url, options) {
|
|
1622
|
+
var worker = new WorkerConstructor(url, options);
|
|
1623
|
+
var importmapChannel = new MessageChannel();
|
|
1624
|
+
importmapChannel.port1.onmessage = function (message) {
|
|
1625
|
+
System.prepareImport().then(function (importmap) {
|
|
1626
|
+
message.target.postMessage(importmap);
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
worker.postMessage('__importmap_init__', [importmapChannel.port2]);
|
|
1630
|
+
return worker
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
var serviceWorker = navigator.serviceWorker;
|
|
1635
|
+
if (serviceWorker) {
|
|
1636
|
+
var register = serviceWorker.register;
|
|
1637
|
+
serviceWorker.register = function(url, options) {
|
|
1638
|
+
var registrationPromise = register.call(this, url, options);
|
|
1639
|
+
registrationPromise.then(function(registration) {
|
|
1640
|
+
var installing = registration.installing;
|
|
1641
|
+
var waiting = registration.waiting;
|
|
1642
|
+
var active = registration.active;
|
|
1643
|
+
var worker = installing || waiting || active;
|
|
1644
|
+
var importmapChannel = new MessageChannel();
|
|
1645
|
+
importmapChannel.port1.onmessage = function (message) {
|
|
1646
|
+
System.prepareImport().then(function (importmap) {
|
|
1647
|
+
message.target.postMessage(importmap)
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
worker.postMessage('__importmap_init__', [importmapChannel.port2]);
|
|
1651
|
+
})
|
|
1652
|
+
return registrationPromise
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1561
1656
|
}());</script>
|
|
1562
1657
|
</head>
|
|
1563
1658
|
<body>
|
|
@@ -1906,9 +2001,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
1906
2001
|
-->
|
|
1907
2002
|
<script type="systemjs-importmap">
|
|
1908
2003
|
{
|
|
1909
|
-
"imports": {
|
|
1910
|
-
"./toolbar.main.js": "./toolbar.main-eb8acf83.js"
|
|
1911
|
-
}
|
|
2004
|
+
"imports": {}
|
|
1912
2005
|
}</script>
|
|
1913
2006
|
<script>
|
|
1914
2007
|
// here we should create something like window.toolbar = {}
|
|
@@ -2634,6 +2727,20 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
2634
2727
|
return then ? value.then(then) : value;
|
|
2635
2728
|
}
|
|
2636
2729
|
|
|
2730
|
+
function _async$5(f) {
|
|
2731
|
+
return function () {
|
|
2732
|
+
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
2733
|
+
args[i] = arguments[i];
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
try {
|
|
2737
|
+
return Promise.resolve(f.apply(this, args));
|
|
2738
|
+
} catch (e) {
|
|
2739
|
+
return Promise.reject(e);
|
|
2740
|
+
}
|
|
2741
|
+
};
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2637
2744
|
var fetchNative = _async$5(function (url) {
|
|
2638
2745
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2639
2746
|
|
|
@@ -2668,20 +2775,6 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
2668
2775
|
});
|
|
2669
2776
|
});
|
|
2670
2777
|
|
|
2671
|
-
function _async$5(f) {
|
|
2672
|
-
return function () {
|
|
2673
|
-
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
2674
|
-
args[i] = arguments[i];
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
try {
|
|
2678
|
-
return Promise.resolve(f.apply(this, args));
|
|
2679
|
-
} catch (e) {
|
|
2680
|
-
return Promise.reject(e);
|
|
2681
|
-
}
|
|
2682
|
-
};
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
2778
|
var responseToHeaders = function responseToHeaders(response) {
|
|
2686
2779
|
var headers = {};
|
|
2687
2780
|
response.headers.forEach(function (value, name) {
|
|
@@ -3124,18 +3217,6 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
3124
3217
|
|
|
3125
3218
|
var _excluded = ["clickToFocus", "clickToClose"];
|
|
3126
3219
|
|
|
3127
|
-
function _await$1(value, then, direct) {
|
|
3128
|
-
if (direct) {
|
|
3129
|
-
return then ? then(value) : value;
|
|
3130
|
-
}
|
|
3131
|
-
|
|
3132
|
-
if (!value || !value.then) {
|
|
3133
|
-
value = Promise.resolve(value);
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
return then ? value.then(then) : value;
|
|
3137
|
-
}
|
|
3138
|
-
|
|
3139
3220
|
function _async$2(f) {
|
|
3140
3221
|
return function () {
|
|
3141
3222
|
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
@@ -3150,6 +3231,18 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
3150
3231
|
};
|
|
3151
3232
|
}
|
|
3152
3233
|
|
|
3234
|
+
function _await$1(value, then, direct) {
|
|
3235
|
+
if (direct) {
|
|
3236
|
+
return then ? then(value) : value;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
if (!value || !value.then) {
|
|
3240
|
+
value = Promise.resolve(value);
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
return then ? value.then(then) : value;
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3153
3246
|
var notificationAvailable = typeof window.Notification === "function";
|
|
3154
3247
|
var notificationPreference = createPreference("notification");
|
|
3155
3248
|
var arrayOfOpenedNotifications = [];
|
|
@@ -4127,16 +4220,16 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4127
4220
|
failFastOnFeatureDetection: failFastOnFeatureDetection,
|
|
4128
4221
|
inlineImportMapIntoHTML: inlineImportMapIntoHTML
|
|
4129
4222
|
}), function () {
|
|
4130
|
-
return _await(
|
|
4223
|
+
return _await(adjustMissingFeatureNames(groupInfo, {
|
|
4131
4224
|
featuresReport: featuresReport,
|
|
4132
4225
|
coverageHandledFromOutside: coverageHandledFromOutside
|
|
4133
|
-
}), function (
|
|
4134
|
-
var canAvoidCompilation = customCompilerPatterns.length === 0 &&
|
|
4226
|
+
}), function (missingFeatureNames) {
|
|
4227
|
+
var canAvoidCompilation = customCompilerPatterns.length === 0 && missingFeatureNames.length === 0 && featuresReport.importmap && featuresReport.dynamicImport && featuresReport.topLevelAwait;
|
|
4135
4228
|
return {
|
|
4136
4229
|
canAvoidCompilation: canAvoidCompilation,
|
|
4137
4230
|
featuresReport: featuresReport,
|
|
4138
4231
|
customCompilerPatterns: customCompilerPatterns,
|
|
4139
|
-
|
|
4232
|
+
missingFeatureNames: missingFeatureNames,
|
|
4140
4233
|
inlineImportMapIntoHTML: inlineImportMapIntoHTML,
|
|
4141
4234
|
outDirectoryRelativeUrl: outDirectoryRelativeUrl,
|
|
4142
4235
|
compileId: compileId,
|
|
@@ -4147,17 +4240,17 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4147
4240
|
});
|
|
4148
4241
|
});
|
|
4149
4242
|
|
|
4150
|
-
var
|
|
4243
|
+
var adjustMissingFeatureNames = _async$1(function (groupInfo, _ref3) {
|
|
4151
4244
|
var featuresReport = _ref3.featuresReport,
|
|
4152
4245
|
coverageHandledFromOutside = _ref3.coverageHandledFromOutside;
|
|
4153
|
-
var
|
|
4154
|
-
var
|
|
4246
|
+
var missingFeatureNames = groupInfo.missingFeatureNames;
|
|
4247
|
+
var missingFeatureNamesCopy = missingFeatureNames.slice();
|
|
4155
4248
|
|
|
4156
|
-
var
|
|
4157
|
-
var index =
|
|
4249
|
+
var markAsSupported = function markAsSupported(name) {
|
|
4250
|
+
var index = missingFeatureNamesCopy.indexOf(name);
|
|
4158
4251
|
|
|
4159
4252
|
if (index > -1) {
|
|
4160
|
-
|
|
4253
|
+
missingFeatureNamesCopy.splice(index, 1);
|
|
4161
4254
|
}
|
|
4162
4255
|
}; // When instrumentation CAN be handed by playwright
|
|
4163
4256
|
// https://playwright.dev/docs/api/class-chromiumcoverage#chromiumcoveragestartjscoverageoptions
|
|
@@ -4165,30 +4258,30 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4165
4258
|
|
|
4166
4259
|
|
|
4167
4260
|
if (coverageHandledFromOutside) {
|
|
4168
|
-
|
|
4261
|
+
markAsSupported("transform-instrument");
|
|
4169
4262
|
}
|
|
4170
4263
|
|
|
4171
4264
|
return _invoke(function () {
|
|
4172
|
-
if (
|
|
4265
|
+
if (missingFeatureNames.includes("transform-import-assertions")) {
|
|
4173
4266
|
return _call$1(supportsJsonImportAssertions, function (jsonImportAssertions) {
|
|
4174
4267
|
featuresReport.jsonImportAssertions = jsonImportAssertions;
|
|
4175
4268
|
return _call$1(supportsCssImportAssertions, function (cssImportAssertions) {
|
|
4176
4269
|
featuresReport.cssImportAssertions = cssImportAssertions;
|
|
4177
4270
|
|
|
4178
4271
|
if (jsonImportAssertions && cssImportAssertions) {
|
|
4179
|
-
|
|
4272
|
+
markAsSupported("transform-import-assertions");
|
|
4180
4273
|
}
|
|
4181
4274
|
});
|
|
4182
4275
|
});
|
|
4183
4276
|
}
|
|
4184
4277
|
}, function () {
|
|
4185
|
-
if (
|
|
4278
|
+
if (missingFeatureNames.includes("new-stylesheet-as-jsenv-import")) {
|
|
4186
4279
|
var newStylesheet = supportsNewStylesheet();
|
|
4187
4280
|
featuresReport.newStylesheet = newStylesheet;
|
|
4188
|
-
|
|
4281
|
+
markAsSupported("new-stylesheet-as-jsenv-import");
|
|
4189
4282
|
}
|
|
4190
4283
|
|
|
4191
|
-
return
|
|
4284
|
+
return missingFeatureNamesCopy;
|
|
4192
4285
|
});
|
|
4193
4286
|
});
|
|
4194
4287
|
|
|
@@ -4363,7 +4456,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4363
4456
|
var canAvoidCompilation = _ref2.canAvoidCompilation,
|
|
4364
4457
|
featuresReport = _ref2.featuresReport,
|
|
4365
4458
|
customCompilerPatterns = _ref2.customCompilerPatterns,
|
|
4366
|
-
|
|
4459
|
+
missingFeatureNames = _ref2.missingFeatureNames,
|
|
4367
4460
|
inlineImportMapIntoHTML = _ref2.inlineImportMapIntoHTML,
|
|
4368
4461
|
outDirectoryRelativeUrl = _ref2.outDirectoryRelativeUrl,
|
|
4369
4462
|
compileId = _ref2.compileId;
|
|
@@ -4379,7 +4472,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4379
4472
|
missingOnly: true,
|
|
4380
4473
|
featuresReport: featuresReport,
|
|
4381
4474
|
customCompilerPatterns: customCompilerPatterns,
|
|
4382
|
-
|
|
4475
|
+
missingFeatureNames: missingFeatureNames,
|
|
4383
4476
|
inlineImportMapIntoHTML: inlineImportMapIntoHTML
|
|
4384
4477
|
})));
|
|
4385
4478
|
};
|
|
@@ -4389,7 +4482,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4389
4482
|
window.alert("Source files (except html) can be executed directly in this browser because: ".concat(getBrowserSupportMessage({
|
|
4390
4483
|
featuresReport: featuresReport,
|
|
4391
4484
|
customCompilerPatterns: customCompilerPatterns,
|
|
4392
|
-
|
|
4485
|
+
missingFeatureNames: missingFeatureNames,
|
|
4393
4486
|
inlineImportMapIntoHTML: inlineImportMapIntoHTML
|
|
4394
4487
|
})));
|
|
4395
4488
|
};
|
|
@@ -4399,7 +4492,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4399
4492
|
window.alert("Source files can be executed directly in this browser because: ".concat(getBrowserSupportMessage({
|
|
4400
4493
|
featuresReport: featuresReport,
|
|
4401
4494
|
customCompilerPatterns: customCompilerPatterns,
|
|
4402
|
-
|
|
4495
|
+
missingFeatureNames: missingFeatureNames,
|
|
4403
4496
|
inlineImportMapIntoHTML: inlineImportMapIntoHTML
|
|
4404
4497
|
})));
|
|
4405
4498
|
};
|
|
@@ -4437,7 +4530,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4437
4530
|
var missingOnly = _ref3.missingOnly,
|
|
4438
4531
|
featuresReport = _ref3.featuresReport,
|
|
4439
4532
|
customCompilerPatterns = _ref3.customCompilerPatterns,
|
|
4440
|
-
|
|
4533
|
+
missingFeatureNames = _ref3.missingFeatureNames,
|
|
4441
4534
|
inlineImportMapIntoHTML = _ref3.inlineImportMapIntoHTML;
|
|
4442
4535
|
var parts = [];
|
|
4443
4536
|
|
|
@@ -4469,14 +4562,14 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4469
4562
|
parts.push("top level await is not supported");
|
|
4470
4563
|
}
|
|
4471
4564
|
|
|
4472
|
-
var
|
|
4565
|
+
var missingFeatureCount = missingFeatureNames.length;
|
|
4473
4566
|
|
|
4474
|
-
if (
|
|
4567
|
+
if (missingFeatureCount === 0) {
|
|
4475
4568
|
if (!missingOnly) {
|
|
4476
|
-
parts.push("all
|
|
4569
|
+
parts.push("all features are natively supported");
|
|
4477
4570
|
}
|
|
4478
4571
|
} else {
|
|
4479
|
-
parts.push("".concat(
|
|
4572
|
+
parts.push("".concat(missingFeatureCount, " features are missing: ").concat(missingFeatureNames));
|
|
4480
4573
|
}
|
|
4481
4574
|
|
|
4482
4575
|
var customCompilerCount = customCompilerPatterns.length;
|
|
@@ -4917,7 +5010,7 @@ html[data-toolbar-visible] #toolbar-trigger {
|
|
|
4917
5010
|
};
|
|
4918
5011
|
});
|
|
4919
5012
|
|
|
4920
|
-
//# sourceMappingURL=toolbar.
|
|
5013
|
+
//# sourceMappingURL=toolbar.main2_6c1b3d82.js.map</script>
|
|
4921
5014
|
|
|
4922
5015
|
|
|
4923
5016
|
</body></html>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"toolbar_injector.js": "
|
|
2
|
+
".jsenv/build/best/src/internal/dev_server/toolbar/jsenv-logo.svg": "assets/jsenv-logo_188b9ca6.svg",
|
|
3
|
+
"toolbar_injector.js": "toolbar_injector_4a48bc53.js",
|
|
4
|
+
"toolbar_injector.js.map": "toolbar_injector_4a48bc53.js.map"
|
|
4
5
|
}
|
|
File without changes
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? nativeTypeOf : customTypeOf;
|
|
13
13
|
|
|
14
|
-
var defineProperty = function (obj, key, value) {
|
|
14
|
+
var defineProperty = (function (obj, key, value) {
|
|
15
15
|
// Shortcircuit the slow defineProperty path when possible.
|
|
16
16
|
// We are trying to avoid issues where setters defined on the
|
|
17
17
|
// prototype cause side effects under the fast path of simple
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return obj;
|
|
32
|
-
};
|
|
32
|
+
});
|
|
33
33
|
|
|
34
34
|
function ownKeys(object, enumerableOnly) {
|
|
35
35
|
var keys = Object.keys(object);
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
return target;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
var objectWithoutPropertiesLoose = function (source, excluded) {
|
|
72
|
+
var objectWithoutPropertiesLoose = (function (source, excluded) {
|
|
73
73
|
if (source === null) return {};
|
|
74
74
|
var target = {};
|
|
75
75
|
var sourceKeys = Object.keys(source);
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
return target;
|
|
86
|
-
};
|
|
86
|
+
});
|
|
87
87
|
|
|
88
|
-
var _objectWithoutProperties = function (source, excluded) {
|
|
88
|
+
var _objectWithoutProperties = (function (source, excluded) {
|
|
89
89
|
if (source === null) return {};
|
|
90
90
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
91
91
|
var key;
|
|
@@ -103,10 +103,9 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
return target;
|
|
106
|
-
};
|
|
107
|
-
/* eslint-env browser */
|
|
108
|
-
|
|
106
|
+
});
|
|
109
107
|
|
|
108
|
+
/* eslint-env browser */
|
|
110
109
|
function _await$4(value, then, direct) {
|
|
111
110
|
if (direct) {
|
|
112
111
|
return then ? then(value) : value;
|
|
@@ -555,6 +554,20 @@
|
|
|
555
554
|
return then ? value.then(then) : value;
|
|
556
555
|
}
|
|
557
556
|
|
|
557
|
+
function _async$3(f) {
|
|
558
|
+
return function () {
|
|
559
|
+
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
560
|
+
args[i] = arguments[i];
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
try {
|
|
564
|
+
return Promise.resolve(f.apply(this, args));
|
|
565
|
+
} catch (e) {
|
|
566
|
+
return Promise.reject(e);
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
|
|
558
571
|
var fetchNative = _async$3(function (url) {
|
|
559
572
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
560
573
|
|
|
@@ -589,20 +602,6 @@
|
|
|
589
602
|
});
|
|
590
603
|
});
|
|
591
604
|
|
|
592
|
-
function _async$3(f) {
|
|
593
|
-
return function () {
|
|
594
|
-
for (var args = [], i = 0; i < arguments.length; i++) {
|
|
595
|
-
args[i] = arguments[i];
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
try {
|
|
599
|
-
return Promise.resolve(f.apply(this, args));
|
|
600
|
-
} catch (e) {
|
|
601
|
-
return Promise.reject(e);
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
|
|
606
605
|
var responseToHeaders = function responseToHeaders(response) {
|
|
607
606
|
var headers = {};
|
|
608
607
|
response.headers.forEach(function (value, name) {
|
|
@@ -729,7 +728,6 @@
|
|
|
729
728
|
});
|
|
730
729
|
};
|
|
731
730
|
};
|
|
732
|
-
|
|
733
731
|
var setAttributes = function setAttributes(element, attributes) {
|
|
734
732
|
Object.keys(attributes).forEach(function (name) {
|
|
735
733
|
element.setAttribute(name, attributes[name]);
|
|
@@ -748,7 +746,7 @@
|
|
|
748
746
|
return then ? value.then(then) : value;
|
|
749
747
|
}
|
|
750
748
|
|
|
751
|
-
var TOOLBAR_BUILD_RELATIVE_URL = "dist/toolbar/
|
|
749
|
+
var TOOLBAR_BUILD_RELATIVE_URL = "dist/toolbar/toolbar_04ba410c.html";
|
|
752
750
|
|
|
753
751
|
function _call(body, then, direct) {
|
|
754
752
|
if (direct) {
|
|
@@ -763,7 +761,7 @@
|
|
|
763
761
|
}
|
|
764
762
|
}
|
|
765
763
|
|
|
766
|
-
var jsenvLogoSvgUrl = new URL("assets/jsenv-
|
|
764
|
+
var jsenvLogoSvgUrl = new URL("assets/jsenv-logo_188b9ca6.svg", document.currentScript && document.currentScript.src || document.baseURI);
|
|
767
765
|
|
|
768
766
|
function _async(f) {
|
|
769
767
|
return function () {
|
|
@@ -969,6 +967,7 @@
|
|
|
969
967
|
} else {
|
|
970
968
|
window.addEventListener("load", injectToolbar);
|
|
971
969
|
}
|
|
970
|
+
|
|
972
971
|
})();
|
|
973
972
|
|
|
974
|
-
//# sourceMappingURL=
|
|
973
|
+
//# sourceMappingURL=toolbar_injector_4a48bc53.js.map
|