mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
perf: analyze cjs exports and emit typescript in parallel (#23856)
This commit is contained in:
parent
fcb6a18b2b
commit
a2dbcf9e0a
13 changed files with 398 additions and 153 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"tempDir": true,
|
||||
"args": "run -A --log-level=debug main.tsx",
|
||||
"args": "run -A run_main_sorted_lines.ts",
|
||||
"output": "main.out"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[WILDCARD]Resolved preact from file:///[WILDLINE]/preact@10.19.6/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
DEBUG RS - [WILDLINE] - Resolved preact from file:///[WILDLINE]/preact@10.19.6/node_modules/preact/hooks/dist/hooks.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
[# ensure that preact is resolving to .deno/preact@10.19.6/node_modules/preact and not .deno/preact-render-to-string@6.4.0/node_modules/preact]
|
||||
DEBUG RS - [WILDLINE] - Resolved preact from file:///[WILDLINE]/preact-render-to-string@6.4.0/node_modules/preact-render-to-string/dist/index.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
[WILDCARD]
|
||||
[WILDCARD]/preact-render-to-string@6.4.0/node_modules/preact-render-to-string/dist/index.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
[WILDCARD]/preact@10.19.6/node_modules/preact/hooks/dist/hooks.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
[WILDCARD]/preact@10.19.6/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs to [WILDLINE]node_modules[WILDCHAR].deno[WILDCHAR]preact@10.19.6[WILDCHAR]node_modules[WILDCHAR]preact
|
||||
[WILDCARD]
|
|
@ -0,0 +1,19 @@
|
|||
const { success, stderr } = new Deno.Command(
|
||||
Deno.execPath(),
|
||||
{
|
||||
args: ["run", "-A", "--log-level=debug", "main.tsx"],
|
||||
},
|
||||
).outputSync();
|
||||
const stderrText = new TextDecoder().decode(stderr);
|
||||
if (!success) {
|
||||
console.error(stderrText);
|
||||
throw new Error("Failed to run script.");
|
||||
}
|
||||
|
||||
// create some stability with the output
|
||||
const lines = stderrText.split("\n")
|
||||
.filter((line) => line.includes("Resolved preact from"));
|
||||
lines.sort();
|
||||
for (const line of lines) {
|
||||
console.error(line);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue