perf(javascript): index feature, semantic, IPC, and source map lookups (#13319)

perf(javascript): eliminate double preload AST pass and index feature/semantic/IPC/sourcemap lookups
This commit is contained in:
morluto authored and GitHub committed 2026-11-22 03:43:13 -05:00
1 parent 79887f7a3b
commit fde2c87b86
17 files changed
+1860 -535

No files matched your search

@@ -121,6 +121,7 @@ const addBundlerModuleNodes = (
input: BundlerModuleProjectionInput,
): void => {
const { file, registration, chunk, coverage, limitations } = input;
const entryModuleKeys = new Set(registration.entry_module_keys);
for (const moduleValue of registration.modules) {
const module = context.accumulator.addNode({
kind: "javascript-module",
@@ -139,9 +140,7 @@ const addBundlerModuleNodes = (
chunk_keys: registration.chunk_keys,
module_key: moduleValue.module_key,
factory_require_name: moduleValue.factory_require_name,
runtime_entry: registration.entry_module_keys.includes(
moduleValue.module_key,
),
runtime_entry: entryModuleKeys.has(moduleValue.module_key),
source_sha256: moduleValue.source_sha256,
structural_fingerprint_sha256:
moduleValue.structural_fingerprint_sha256,