@jsenv/core 27.3.1 → 27.3.4
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/controllable_child_process.mjs +1 -0
- package/dist/controllable_worker_thread.mjs +1 -0
- package/dist/js/execute_using_dynamic_import.js +5 -3
- package/dist/main.js +169 -146
- package/package.json +1 -1
- package/src/build/build.js +2 -2
- package/src/build/graph_utils.js +14 -11
- package/src/execute/run.js +29 -28
- package/src/execute/runtimes/browsers/from_playwright.js +90 -92
- package/src/execute/runtimes/node/execute_using_dynamic_import.js +8 -2
- package/src/execute/runtimes/node/node_child_process.js +2 -0
- package/src/execute/runtimes/node/node_worker_thread.js +13 -2
- package/src/omega/url_graph/url_graph_report.js +2 -4
- package/src/omega/url_graph.js +29 -16
- package/src/plugins/autoreload/dev_sse/jsenv_plugin_dev_sse_server.js +1 -2
- package/src/plugins/bundling/js_module/bundle_js_module.js +0 -1
- package/src/plugins/node_esm_resolution/jsenv_plugin_node_esm_resolution.js +1 -2
- package/src/plugins/url_analysis/js/js_urls.js +0 -9
- package/src/test/coverage/report_to_coverage.js +16 -11
- package/src/test/execute_plan.js +3 -2
- package/src/test/execute_test_plan.js +3 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { writeFileSync } from "node:fs";
|
|
1
2
|
import { Session } from "node:inspector";
|
|
2
3
|
import { performance, PerformanceObserver } from "node:perf_hooks";
|
|
3
4
|
|
|
@@ -122,9 +123,10 @@ const executeUsingDynamicImport = async ({
|
|
|
122
123
|
collectPerformance,
|
|
123
124
|
coverageEnabled,
|
|
124
125
|
coverageConfig,
|
|
125
|
-
coverageMethodForNodeJs
|
|
126
|
+
coverageMethodForNodeJs,
|
|
127
|
+
coverageFileUrl
|
|
126
128
|
}) => {
|
|
127
|
-
|
|
129
|
+
const result = {};
|
|
128
130
|
const afterImportCallbacks = [];
|
|
129
131
|
|
|
130
132
|
if (coverageEnabled && coverageMethodForNodeJs === "Profiler") {
|
|
@@ -140,7 +142,7 @@ const executeUsingDynamicImport = async ({
|
|
|
140
142
|
rootDirectoryUrl,
|
|
141
143
|
coverageConfig
|
|
142
144
|
});
|
|
143
|
-
|
|
145
|
+
writeFileSync(new URL(coverageFileUrl), JSON.stringify(coverageLight, null, " "));
|
|
144
146
|
});
|
|
145
147
|
}
|
|
146
148
|
|