@jsenv/core 37.1.5 → 38.0.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/js/autoreload.js +2 -2
- package/dist/jsenv_core.js +3231 -2483
- package/package.json +14 -13
- package/src/build/build.js +250 -1028
- package/src/build/build_specifier_manager.js +1200 -0
- package/src/build/build_urls_generator.js +40 -18
- package/src/build/version_mappings_injection.js +14 -16
- package/src/dev/file_service.js +0 -10
- package/src/dev/start_dev_server.js +0 -2
- package/src/kitchen/kitchen.js +54 -37
- package/src/kitchen/url_graph/references.js +84 -93
- package/src/kitchen/url_graph/url_graph.js +16 -6
- package/src/kitchen/url_graph/url_info_transformations.js +124 -55
- package/src/plugins/autoreload/client/autoreload.js +6 -2
- package/src/plugins/autoreload/jsenv_plugin_autoreload_server.js +20 -16
- package/src/plugins/autoreload/jsenv_plugin_hot_search_param.js +1 -1
- package/src/plugins/cache_control/jsenv_plugin_cache_control.js +2 -2
- package/src/plugins/clean_html/jsenv_plugin_clean_html.js +16 -0
- package/src/plugins/importmap/jsenv_plugin_importmap.js +11 -23
- package/src/plugins/inlining/jsenv_plugin_inlining_as_data_url.js +16 -1
- package/src/plugins/inlining/jsenv_plugin_inlining_into_html.js +14 -24
- package/src/plugins/plugin_controller.js +37 -25
- package/src/plugins/plugins.js +2 -0
- package/src/plugins/protocol_file/jsenv_plugin_protocol_file.js +31 -16
- package/src/plugins/reference_analysis/directory/jsenv_plugin_directory_reference_analysis.js +12 -6
- package/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js +33 -54
- package/src/plugins/reference_analysis/js/jsenv_plugin_js_reference_analysis.js +2 -9
- package/src/plugins/reference_analysis/jsenv_plugin_reference_analysis.js +15 -8
- package/src/build/build_versions_manager.js +0 -492
package/dist/js/autoreload.js
CHANGED
|
@@ -174,7 +174,6 @@ const reloader = {
|
|
|
174
174
|
value: [],
|
|
175
175
|
onchange: () => {},
|
|
176
176
|
add: (reloadMessage) => {
|
|
177
|
-
// console.debug("received reload message", reloadMessage);
|
|
178
177
|
reloader.changes.value.push(reloadMessage);
|
|
179
178
|
reloader.changes.onchange();
|
|
180
179
|
if (reloader.autoreload.enabled) {
|
|
@@ -267,11 +266,12 @@ const dequeue = async () => {
|
|
|
267
266
|
}
|
|
268
267
|
};
|
|
269
268
|
|
|
270
|
-
const applyHotReload = async ({ cause,
|
|
269
|
+
const applyHotReload = async ({ cause, hotInstructions }) => {
|
|
271
270
|
await hotInstructions.reduce(
|
|
272
271
|
async (previous, { type, boundary, acceptedBy }) => {
|
|
273
272
|
await previous;
|
|
274
273
|
|
|
274
|
+
const hot = Date.now();
|
|
275
275
|
const urlToFetch = new URL(boundary, `${window.location.origin}/`).href;
|
|
276
276
|
const urlHotMeta = urlHotMetas[urlToFetch];
|
|
277
277
|
// there is no url hot meta when:
|